Trigger Build Artifacts → main #260
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Trigger Build Artifacts | |
| run-name: Trigger Build Artifacts → ${{ github.ref_name }} | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - devnet | |
| - testnet | |
| - mainnet | |
| - "releases/walrus-*-release" | |
| concurrency: ${{ github.workflow }}-${{ github.ref_name }} | |
| jobs: | |
| trigger-artifact-builds: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # mp3 pre-warm — fires on every release-branch push. | |
| - name: Dispatch prebuild-walrus-images in MystenLabs/sui-operations | |
| uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # pin@v4.0.1 | |
| with: | |
| repository: MystenLabs/sui-operations | |
| token: ${{ secrets.SUI_OPS_DISPATCH_TOKEN }} | |
| event-type: prebuild-walrus-images | |
| client-payload: > | |
| { | |
| "walrus_commit": "${{ github.sha }}", | |
| "cache_family": "${{ github.ref_name }}", | |
| "build_arm64": "${{ github.ref_name == 'devnet' || github.ref_name == 'testnet' || github.ref_name == 'mainnet' }}" | |
| } | |
| # Branch-tag aliases + macos/windows tarballs. Release branches only. | |
| - name: Dispatch Walrus Artifact Builds in MystenLabs/sui-operations | |
| if: contains(fromJSON('["devnet", "testnet", "mainnet"]'), github.ref_name) | |
| uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # pin@v4.0.1 | |
| with: | |
| repository: MystenLabs/sui-operations | |
| token: ${{ secrets.SUI_OPS_DISPATCH_TOKEN }} | |
| event-type: walrus-build-artifacts | |
| client-payload: '{"branch": "${{ github.ref_name }}"}' |