Bump version #3
Workflow file for this run
This file contains hidden or 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
| # https://blog.rust-lang.org/2025/07/11/crates-io-development-update-2025-07/ | |
| name: Publish to crates.io | |
| on: | |
| push: | |
| tags: ["v*"] # Triggers when pushing tags starting with 'v' | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| environment: release # Optional: for enhanced security | |
| permissions: | |
| id-token: write # Required for OIDC token exchange | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Anchor prerequisites | |
| run: sudo apt update && sudo apt install libudev-dev | |
| - uses: rust-lang/crates-io-auth-action@v1 | |
| id: auth | |
| - run: cargo publish | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} |