Skip to content

Commit

Permalink
Automatically update brew repo
Browse files Browse the repository at this point in the history
  • Loading branch information
egorikftp committed Nov 26, 2024
1 parent 301de19 commit d11b754
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
echo "IS_SNAPSHOT=$IS_SNAPSHOT" >> $GITHUB_ENV
- name: Build CLI
run: ./gradlew buildCLI

- name: Build signed plugin
run: ./gradlew signPlugin

Expand Down Expand Up @@ -73,9 +76,6 @@ jobs:
if: env.IS_SNAPSHOT == 'false'
run: ./gradlew publishPlugin

- name: Build CLI
run: ./gradlew buildCLI

- name: Delete release if exist then create a new one
run: |
gh release view ${{ env.VERSION_NAME }} && gh release delete ${{ env.VERSION_NAME }} -y --cleanup-tag
Expand All @@ -90,3 +90,16 @@ jobs:
fi
gh release create ${{ env.VERSION_NAME }} idea-plugin/build/distributions/*-signed.zip cli/build/distributions/*.zip --generate-notes $PRE_RELEASE_FLAG
- uses: mislav/bump-homebrew-formula-action@v3
if: env.IS_SNAPSHOT == 'false'
with:
formula-name: valkyrie
formula-path: Formula/valkyrie.rb
tag-name: ${{ env.VERSION_NAME }}
homebrew-tap: ComposeGears/homebrew-repo
download-url: https://github.com/ComposeGears/Valkyrie/releases/download/${{ env.VERSION_NAME }}/valkyrie-cli-${{ env.VERSION_NAME }}.zip
commit-message: |
Bump {{formulaName}} {{version}}
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

0 comments on commit d11b754

Please sign in to comment.