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 594f2b1 commit b7b2638Copy full SHA for b7b2638
.github/workflows/publish.yml
@@ -9,10 +9,12 @@ on:
9
10
permissions:
11
contents: write
12
+ id-token: write
13
14
jobs:
15
create_tag:
16
name: Publish artifacts of build
17
+ environment: release
18
runs-on: ubuntu-latest
19
if: |
20
github.repository_owner == 'bytecodealliance'
@@ -79,10 +81,15 @@ jobs:
79
81
files: "dist/*"
80
82
tag_name: v${{ steps.tag.outputs.version }}
83
84
+
85
+ - uses: rust-lang/crates-io-auth-action@v1
86
+ id: auth
87
+ if: steps.tag.outputs.push_tag == 'yes'
88
89
- run: |
90
rm -rf dist main.log
91
rustc ci/publish.rs
92
./publish publish
93
env:
- CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
94
+ CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
95
if: steps.tag.outputs.push_tag == 'yes'
0 commit comments