File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
3
on :
4
- # TODO: Remove this after testing
5
- push :
6
4
workflow_dispatch :
7
5
inputs :
8
- dry_run :
9
- description : ' Dry run'
10
- required : true
11
- default : true
12
- type : boolean
13
6
level :
14
7
description : ' Release level'
15
8
required : true
41
34
run : cargo install --version 0.25.17 cargo-release
42
35
- name : Set git user
43
36
run : |
44
- git config --global user.email "${GITHUB_ACTOR }@users.noreply.github.com>"
45
- git config --global user.name "${GITHUB_ACTOR }"
37
+ git config --global user.email "${GITHUB_TRIGGERING_ACTOR }@users.noreply.github.com>"
38
+ git config --global user.name "${GITHUB_TRIGGERING_ACTOR }"
46
39
- name : Run cargo release
47
- # TODO: Uncomment this after testing
48
- # run: cargo release ${{ github.event.inputs.level }} ${{ github.event.inputs.dry_run && '--no-push' || '' }} ${{ github.event.inputs.dry_run && '--no-publish' || '' }} --no-confirm --execute
49
- # TODO: Remove this after testing
50
- run : cargo release major --no-push --no-publish --no-confirm --execute
40
+ env :
41
+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
42
+ run : cargo release ${{ github.event.inputs.level }} --no-confirm --execute
You can’t perform that action at this time.
0 commit comments