Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release to Homebrew #5

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,28 @@ jobs:
mv -v linux/pg_parcel pg_parcel-linux
find .
- uses: softprops/action-gh-release@v1
id: release
with:
files: |
pg_parcel-apple-darwin
pg_parcel-linux
fail_on_unmatched_files: true
- name: Extract version
id: extract-version
run: |
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
- uses: mislav/bump-homebrew-formula-action@v1
# if: "!contains(github.ref, '-')" # skip prereleases
with:
formula-name: pg_parcel
formula-path: Formula/pg_parcel.rb
homebrew-tap: Blissfully/homebrew-tools
base-branch: master
download-url: ${{ fromJSON(steps.release.outputs.assets)[0].browser_download_url }}
commit-message: |
{{formulaName}} {{version}}

Created by https://github.com/mislav/bump-homebrew-formula-action
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}