Skip to content

Commit 3eb6444

Browse files
ci: add cargo publish job triggered by version tags
1 parent eaabe1b commit 3eb6444

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,3 +360,19 @@ jobs:
360360
echo " wgpu Compat : ${{ needs.wgpu-compat.result }}"
361361
exit 1
362362
fi
363+
# Publish to crates.io on version tags
364+
publish:
365+
name: Publish to crates.io
366+
runs-on: ubuntu-latest
367+
needs: [quality-gate]
368+
if: startsWith(github.ref, 'refs/tags/v')
369+
steps:
370+
- uses: actions/checkout@v5
371+
372+
- name: Install Rust
373+
uses: dtolnay/rust-toolchain@stable
374+
375+
- name: Publish to crates.io
376+
env:
377+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
378+
run: cargo publish --no-default-features --features huggingface,airframe

0 commit comments

Comments
 (0)