Skip to content

Commit

Permalink
Automatically create PR to bump homebrew version of CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
banool committed Nov 7, 2023
1 parent c83027e commit 465a05a
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/cli-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,6 @@ jobs:
name: cli-builds
path: aptos-cli-*.zip

build-os-x-binary:
name: "Build OS X binary"
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.source_git_ref_override }}
- name: Build CLI
run: scripts/cli/build_cli_release.sh "MacOSX"
- name: Upload Binary
uses: actions/upload-artifact@v3
with:
name: cli-builds
path: aptos-cli-*.zip

build-windows-binary:
name: "Build Windows binary"
runs-on: windows-latest
Expand All @@ -88,7 +73,6 @@ jobs:
needs:
- build-ubuntu20-binary
- build-ubuntu22-binary
- build-os-x-binary
- build-windows-binary
runs-on: ubuntu-latest
permissions:
Expand All @@ -109,3 +93,23 @@ jobs:
title: "${{ format('Aptos CLI Release v{0}', inputs.release_version) }}"
files: |
aptos-cli-*.zip
bump-homebrew-version:
name: "Bump version in Homebrew"
needs:
- release-binaries
runs-on: ubuntu-latest
steps:
- uses: mislav/bump-homebrew-formula-action@v3
with:
formula-name: aptos
tag-name: ${{ github.event.inputs.release_version }}
create-pullrequest: true
commit-message: |
{{formulaName}} {{version}}
Created by https://github.com/mislav/bump-homebrew-formula-action
From CLI release run ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
env:
COMMITTER_TOKEN: ${{ secrets.APTOS_BOT_GH_PAT_APTOS_CORE_HOMEBREW_BUMPER }}

0 comments on commit 465a05a

Please sign in to comment.