mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-09-27 10:46:28 -05:00
[F] Fix secrets context in release workflow for crates.io publishing
This commit is contained in:
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user