Publish #52
Workflow file for this run
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 | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
rust: [stable] | |
steps: | |
- uses: hecrj/setup-rust-action@v2 | |
with: | |
rust-version: ${{ matrix.rust }} | |
- uses: actions/checkout@main | |
- name: Login to crates.io | |
run: cargo login $CRATES_IO_TOKEN | |
env: | |
CRATES_IO_TOKEN: ${{ secrets.crates_io_token }} | |
- name: Dry run publish akd_core | |
run: cargo publish --dry-run --manifest-path Cargo.toml -p akd_core | |
- name: Publish crate akd_core | |
run: cargo publish --manifest-path Cargo.toml -p akd_core | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.crates_io_token }} | |
- name: Wait for necessary akd_core version to be available | |
run: bash ./.github/workflows/wait-for-crate-dependency.sh akd akd_core | |
- name: Dry run publish AKD | |
run: cargo publish --dry-run --manifest-path Cargo.toml -p akd | |
- name: Publish crate AKD | |
run: cargo publish --manifest-path Cargo.toml -p akd | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.crates_io_token }} |