Skip to content

migrate off of dawidd6/action-homebrew-bump-formula #15

migrate off of dawidd6/action-homebrew-bump-formula

migrate off of dawidd6/action-homebrew-bump-formula #15

Workflow file for this run

name: publish
on:
push:
tags:
- "v*"
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Load secret
uses: 1password/load-secrets-action@v2
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
MY_GITHUB_PAT: op://Developer/GitHub/PAT
- name: Update Homebrew formula
run: |
brew bump-formula-pr \
--message "bump version to $(git describe --tags)" \
--no-browse \
--strict \
--online \
--tag "$(git describe --tags)" \
--revision "$(git rev-parse HEAD)" \
scripts
- name: Create release on GitHub
uses: softprops/action-gh-release@v1
with:
name: ${{ github.ref_name }}