Modify release pipeline to attach the binaries.

This commit is contained in:
Sander Declerck 2025-12-01 12:31:55 +01:00
parent 2e57057baa
commit 20e9826ef0
No known key found for this signature in database
2 changed files with 27 additions and 2 deletions

View file

@ -7,10 +7,14 @@ on:
permissions:
id-token: write
contents: read
contents: write
jobs:
create-binaries:
uses: ./.github/workflows/create-artifact.yml
build:
needs: create-binaries
runs-on: ubuntu-latest
steps:
@ -55,3 +59,22 @@ jobs:
run: |
echo "Publishing version ${{ steps.get_version.outputs.tag }} to NPM"
npm publish --workspace=packages/safe-chain --access public --provenance
- name: Download all binary artifacts
uses: actions/download-artifact@v4
with:
path: binaries/
pattern: safe-chain-*
merge-multiple: false
- name: Upload binaries to existing GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ steps.get_version.outputs.tag }} \
binaries/safe-chain-macos-x64/* \
binaries/safe-chain-macos-arm64/* \
binaries/safe-chain-linux-x64/* \
binaries/safe-chain-linux-arm64/* \
binaries/safe-chain-win-x64/* \
binaries/safe-chain-win-arm64/*

View file

@ -1,6 +1,8 @@
name: Create binaries
on: pull_request
on:
pull_request:
workflow_call:
jobs:
create-binaries: