This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): Publish crates upon release (#104)
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Publish crates | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
acvm-ref: | ||
description: The acvm reference to checkout | ||
required: true | ||
|
||
jobs: | ||
publish: | ||
name: Publish in order | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.acvm-ref }} | ||
|
||
- name: Setup toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: 1.66.0 | ||
|
||
# These steps are in a specific order so crate dependencies are updated first | ||
- name: Publish acir_field | ||
run: | | ||
cargo publish --package acir_field | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.ACVM_CRATES_IO_TOKEN }} | ||
|
||
- name: Publish acir | ||
run: | | ||
cargo publish --package acir | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.ACVM_CRATES_IO_TOKEN }} | ||
|
||
- name: Publish acvm | ||
run: | | ||
cargo publish --package acvm | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.ACVM_CRATES_IO_TOKEN }} | ||
|
||
- name: Publish acvm_stdlib | ||
run: | | ||
cargo publish --package acvm_stdlib | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.ACVM_CRATES_IO_TOKEN }} |
This file contains 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