Skip to content

Commit

Permalink
Use different action extensions
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Zhang <[email protected]>
  • Loading branch information
jimthematrix committed Sep 3, 2024
1 parent 51fa7d7 commit be41d3d
Showing 1 changed file with 35 additions and 7 deletions.
42 changes: 35 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
tags:
- 'v*.*.*'

env:
ZETO_VER: ${{ github.ref_name }}

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -48,11 +51,36 @@ jobs:
npm install
npm run gen
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
- name: Create artifacts archives
working-directory: ${{ runner.temp }}/zeto-artifacts
run: |
tar -czvf zeto-wasm.tar.gz **/*.wasm
tar -czvf zeto-test-proving-keys.tar.gz *.zkey *-vkey.json
- name: Publish Release Artifact
uses: actions/upload-artifact@v4
with:
prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-beta') || contains(github.ref, '-alpha') }}
files: |
${{ runner.temp }}/zeto-artifacts/**/*.wasm
${{ runner.temp }}/zeto-artifacts/**/*.zkey
name: zeto-wasm-and-proving-keys
path: |
${{ runner.temp }}/zeto-artifacts/zeto-wasm.tar.gz
${{ runner.temp }}/zeto-artifacts/**/zeto-test-proving-keys.tar.gz
create-release:
name: Create GitHub Release
needs:
- build
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Download Artifacts
id: download
uses: actions/download-artifact@v4
- name: Release Zeto Version
uses: ncipollo/release-action@v1
with:
allowUpdates: 'true'
artifacts: zeto-wasm.tar.gz,zeto-test-proving-keys.tar.gz
tag: ${{ env.ZETO_VER }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit be41d3d

Please sign in to comment.