Release #5
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: Release | |
permissions: | |
pull-requests: write | |
contents: write | |
on: | |
push: | |
tags: | |
- 'v[12].[0-9]+.[0-9]+' | |
- 'v[12].[0-9]+.[0-9]+-alpha.[0-9]+' | |
jobs: | |
crates-io: | |
name: Publish to crates.io | |
runs-on: ubicloud | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Cargo login | |
run: | | |
cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
- name: Publish drift-idl-gen | |
run: | | |
cd crates/drift-idl-gen | |
cargo publish | |
- name: Publish drift-rs | |
run: | | |
cargo publish |