mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Modify release pipeline to attach the binaries.
This commit is contained in:
parent
2e57057baa
commit
20e9826ef0
2 changed files with 27 additions and 2 deletions
25
.github/workflows/build-and-release.yml
vendored
25
.github/workflows/build-and-release.yml
vendored
|
|
@ -7,10 +7,14 @@ on:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: read
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
create-binaries:
|
||||||
|
uses: ./.github/workflows/create-artifact.yml
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
needs: create-binaries
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -55,3 +59,22 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "Publishing version ${{ steps.get_version.outputs.tag }} to NPM"
|
echo "Publishing version ${{ steps.get_version.outputs.tag }} to NPM"
|
||||||
npm publish --workspace=packages/safe-chain --access public --provenance
|
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/*
|
||||||
|
|
|
||||||
4
.github/workflows/create-artifact.yml
vendored
4
.github/workflows/create-artifact.yml
vendored
|
|
@ -1,6 +1,8 @@
|
||||||
name: Create binaries
|
name: Create binaries
|
||||||
|
|
||||||
on: pull_request
|
on:
|
||||||
|
pull_request:
|
||||||
|
workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create-binaries:
|
create-binaries:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue