Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
Automate brew update after release (LangStream#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi authored Oct 20, 2023
1 parent 88116b9 commit d0fef49
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,33 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
prerelease: false


homebrew-release:
needs: [ 'release' ]
name: Bump Homebrew CLI and Homebrew mini-langstream formulae
runs-on: ubuntu-latest
steps:
- name: Set output
id: vars
run: |
echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
echo "version=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT
- uses: mislav/bump-homebrew-formula-action@v3
with:
formula-name: Langstream
formula-path: langstream.rb
download-url: https://github.com/LangStream/langstream/releases/download/${{ steps.vars.outputs.tag }}/langstream-cli-${{ steps.vars.outputs.version }}.zip
homebrew-tap: LangStream/homebrew-langstream
env:
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}

- uses: mislav/bump-homebrew-formula-action@v3
with:
formula-name: MiniLangstream
formula-path: mini-langstream.rb
download-url: https://github.com/LangStream/langstream/releases/download/${{ steps.vars.outputs.tag }}/mini-langstream-${{ steps.vars.outputs.version }}.zip
homebrew-tap: LangStream/homebrew-langstream
env:
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_TOKEN }}

0 comments on commit d0fef49

Please sign in to comment.