Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use correct release trigger for upload-binaries.yml #266

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 15 additions & 17 deletions .github/workflows/upload-binaries.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
---
name: Upload Binaries
on:
release:
types:
- created
types: [published]
workflow_dispatch:
jobs:
build:
name: build release binary
name: Build Release Binaries
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
channel:
- stable
- nightly
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.channel }}
- run: rustup default ${{ matrix.channel }}
- run: cargo build --release --verbose --package manta-trusted-setup --all-features --bin groth16_phase2_client
- run: rustup update stable
- run: rustup default stable
- run: rustup default
- run: cargo build --release --all-features --workspace
- id: get_release
uses: bruceadams/get-release@v1.2.3
env:
Expand All @@ -33,23 +31,23 @@ jobs:
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/release/groth16_phase2_client
asset_name: groth16-phase2-client-${{ matrix.channel }}-macos
asset_content_type: application/octet-stream
asset_name: groth16-phase2-client-macos-latest
asset_content_type: application/binary
- if: matrix.os == 'ubuntu-latest'
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/release/groth16_phase2_client
asset_name: groth16-phase2-client-${{ matrix.channel }}-ubuntu
asset_content_type: application/octet-stream
asset_name: groth16-phase2-client-ubuntu-latest
asset_content_type: application/binary
- if: matrix.os == 'windows-latest'
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/release/groth16_phase2_client
asset_name: groth16-phase2-client-${{ matrix.channel }}-windows
asset_content_type: application/octet-stream
asset_path: ./target/release/groth16_phase2_client.exe
asset_name: groth16-phase2-client-windows-latest.exe
asset_content_type: application/binary