Rust Package #3
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
# We really only want to publish the eip7594 crate | |
# However, crates.io forces us to publish its dependencies too. | |
name: Publish rust crates | |
on: | |
workflow_dispatch: | |
inputs: | |
ref: | |
description: The reference (branch/tag/commit) to checkout | |
required: true | |
jobs: | |
publish: | |
name: Publish in order | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.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 bls12_381 | |
run: | | |
cargo publish --package crate_crypto_internal_peerdas_bls12_381 | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_RELEASE_TOKEN }} | |
- name: Publish polynomial | |
run: | | |
cargo publish --package crate_crypto_internal_peerdas_polynomial | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_RELEASE_TOKEN }} | |
- name: Publish kzg_multi_open | |
run: | | |
cargo publish --package crate_crypto_kzg_multi_open_fk20 | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_RELEASE_TOKEN }} | |
- name: Publish eip7594 | |
run: | | |
cargo publish --package eip7594 | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_RELEASE_TOKEN }} |