Publish crates to crates.io #14
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
name: Publish crates to crates.io | |
permissions: | |
contents: read | |
on: | |
workflow_dispatch: | |
jobs: | |
publish_crates: | |
name: Publish crates to crates.io | |
strategy: | |
matrix: | |
rust: [stable] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Rust ${{ matrix.rust }} | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
profile: minimal | |
override: true | |
- uses: actions/checkout@v4 | |
- name: Publish derive crate | |
env: | |
VERBOSE: true | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
run: | | |
cd fluvio-future-derive | |
cargo publish | |
- uses: actions/checkout@v4 | |
- name: Publish main crate | |
env: | |
VERBOSE: true | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
run: | | |
cargo publish |