[F] Fix secrets context in release workflow for crates.io publishing

This commit is contained in:
Azalea
2026-09-23 01:09:44 +00:00
parent 3aff871552
commit 72d9c28c9e

View File

@@ -417,11 +417,8 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- name: Authenticate with crates.io (Trusted Publishing / OIDC)
if: ${{ !secrets.CARGO_REGISTRY_TOKEN }}
- name: Authenticate with crates.io
uses: rust-lang/crates-io-auth-action@v1
- name: Publish crate
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN || env.CARGO_REGISTRY_TOKEN }}
run: cargo publish -p hyfetch