Skip to content

Commit

Permalink
Fixing version update for cask.
Browse files Browse the repository at this point in the history
  • Loading branch information
kebernet committed Jul 31, 2024
1 parent 617b5e7 commit 12ed67f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,14 @@ jobs:
apt-get install -y wget git
- name: Build Homebrew Cask
run: |
wget https://github.com/atl-tw/${{ needs.project-info.outputs.PROJECT_ARTIFACT }}/archive/refs/tags/${{ needs.project-info.outputs.PROJECT_VERSION }}.zip
ARM_SHA=$(shasum -a 256 ./target/${{ needs.project-info.outputs.PROJECT_ARTIFACT }}-ARM_64_${{ needs.project-info.outputs.PROJECT_VERSION }}.dmg | awk '{print $1}')
X86_SHA=$(shasum -a 256 ./target/${{ needs.project-info.outputs.PROJECT_ARTIFACT }}-x86_64_${{ needs.project-info.outputs.PROJECT_VERSION }}.dmg | awk '{print $1}')
./mvnw --batch-mode --batch-mode versions:set "-DnewVersion=${{ needs.project-info.outputs.PROJECT_VERSION }}"
./mvnw "-Dbrew.arm.asset.url=${{ steps.mac-arm.outputs.browser_download_url}}" \
"-Dbrew.arm.asset.hash=$ARM_SHA" \
"-Dbrew.x86.asset.url=${{ steps.mac-intel.outputs.browser_download_url}}" \
"-Dbrew.x86.asset.hash=$X86_SHA" \
--batch-mode versions:set "-DnewVersion=${{ needs.project-info.outputs.PROJECT_VERSION }}" package
package
- name: Publish Homebrew
env:
DESTINATION_BRANCH: main
Expand Down

0 comments on commit 12ed67f

Please sign in to comment.