File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- " v*"
7
+ workflow_dispatch :
8
+ inputs :
9
+ version :
10
+ description : The version to build
7
11
8
12
jobs :
9
13
release :
10
14
runs-on : ubuntu-latest
11
15
environment : release
16
+ permissions :
17
+ id-token : write
12
18
steps :
13
19
- name : Checkout repository
14
- uses : actions/checkout@v4
20
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21
+ with :
22
+ # The tag to build or the tag received by the tag event
23
+ ref : ${{ github.event.inputs.version || github.ref }}
24
+ persist-credentials : false
15
25
16
- - uses : dtolnay/rust-toolchain@stable
26
+ - uses : rust-lang/crates-io-auth-action@v1
27
+ id : auth
17
28
18
29
- name : Publish to crates.io
19
30
run : cargo publish
20
31
env :
21
- CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
32
+ CARGO_REGISTRY_TOKEN : ${{ steps.auth.outputs.token }}
You can’t perform that action at this time.
0 commit comments