We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a76b9e commit 14652b3Copy full SHA for 14652b3
1 file changed
.github/workflows/release.yml
@@ -12,6 +12,8 @@ jobs:
12
release:
13
name: Release
14
runs-on: ubuntu-latest
15
+ env:
16
+ HAS_CARGO_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN != '' }}
17
steps:
18
- name: Checkout
19
uses: actions/checkout@v6
@@ -74,7 +76,7 @@ jobs:
74
76
fi
75
77
78
- name: Publish to crates.io
- if: ${{ secrets.CARGO_REGISTRY_TOKEN != '' && steps.publish-ready.outputs.ready == 'true' }}
79
+ if: ${{ env.HAS_CARGO_TOKEN == 'true' && steps.publish-ready.outputs.ready == 'true' }}
80
run: cargo publish --workspace --locked
81
env:
82
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
0 commit comments