File tree 1 file changed +16
-2
lines changed 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ name: Publish Crate
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ inputs :
6
+ dry-run :
7
+ description : ' Is this a dry-run?'
8
+ required : true
9
+ default : true
10
+ type : boolean
5
11
6
12
jobs :
7
13
publish :
13
19
-
uses :
actions-rust-lang/[email protected]
14
20
with :
15
21
toolchain : stable
22
+
23
+ - name : Cargo Publish (Dry Run)
24
+ if : ${{ inputs.dry-run === 'true' }}
25
+ run : cargo publish --dry-run --token ${CRATES_TOKEN} -p antithesis_sdk
26
+ env :
27
+ CRATES_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
16
28
17
- - run : cargo publish --dry-run --token ${CRATES_TOKEN} -p antithesis_sdk
29
+ - name : Cargo Publish
30
+ if : ${{ inputs.dry-run !== 'true' }}
31
+ run : echo we will publish for real
18
32
env :
19
- CRATES_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
33
+ CRATES_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
You can’t perform that action at this time.
0 commit comments