Skip to content

keg_relocate: fix check for paths rooted in build directory #27

keg_relocate: fix check for paths rooted in build directory

keg_relocate: fix check for paths rooted in build directory #27

Workflow file for this run

name: Build Homebrew package
on:
push:
paths:
- .github/workflows/build-pkg.yml
- package/scripts
release:
types:
- published
jobs:
build:
if: github.repository_owner == 'Homebrew'
runs-on: macos-13
env:
IDENTIFIER: sh.brew.Homebrew
TMP_PATH: /tmp/brew
MIN_OS: '11.0'
steps:
- uses: actions/checkout@v3
with:
path: brew
fetch-depth: 0
- name: Version name
id: print-version
run: |
echo "version=$(git -C brew describe --tags --always)" >> "$GITHUB_OUTPUT"
- name: Build package
run: |
pkgbuild --root brew \
--scripts brew/package/scripts \
--install-location "$TMP_PATH" \
--identifier "$IDENTIFIER" \
--min-os-version "$MIN_OS" \
--filter .DS_Store \
--version ${{ steps.print-version.outputs.version }} \
Homebrew-${{ steps.print-version.outputs.version }}.pkg
- uses: actions/upload-artifact@v3
with:
name: Homebrew ${{ steps.print-version.outputs.version }}
path: Homebrew-${{ steps.print-version.outputs.version }}.pkg