-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
name: Build Homebrew bottle | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [build-bottle] | ||
|
||
env: | ||
HOMEBREW_DEVELOPER: 1 | ||
|
@@ -51,6 +53,11 @@ jobs: | |
if: steps.cache.outputs.cache-hit != 'true' | ||
run: brew install-bundler-gems | ||
|
||
- name: Uninstall existing formula | ||
run: brew uninstall --force --ignore-dependencies --formula "$FORMULA_NAME" | ||
env: | ||
FORMULA_NAME: ${{ matrix.formula }} | ||
|
||
- name: Install formula | ||
run: brew install --build-bottle "$FORMULA_NAME" | ||
env: | ||
|
@@ -75,6 +82,9 @@ jobs: | |
upload: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- name: Set up Homebrew | ||
id: set-up-homebrew | ||
|
@@ -104,7 +114,7 @@ jobs: | |
- run: ls -l | ||
|
||
- name: Upload bottles | ||
run: brew pr-upload --root-url "$BOTTLE_ROOT_URL" --keep-old --committer "Mislav Marohnić <[email protected]>" --warn-on-upload-failure | ||
run: brew pr-upload --root-url "$BOTTLE_ROOT_URL" --committer "Mislav Marohnić <[email protected]>" --warn-on-upload-failure | ||
env: | ||
HOMEBREW_GITHUB_PACKAGES_USER: mislav | ||
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ secrets.BOTTLE_UPLOAD_TOKEN }} | ||
|