File tree 1 file changed +12
-8
lines changed
1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 12
12
- uses : actions/checkout@master
13
13
with :
14
14
fetch-depth : 0
15
- ref : ${{ github.event.pull_request.head.ref }}
15
+ ref : ${{ github.event.repository.default_branch }}
16
16
-
uses :
actions-rs/[email protected]
17
17
with :
18
18
toolchain : stable
@@ -22,15 +22,19 @@ jobs:
22
22
- name : Extract version from tag
23
23
id : get_version
24
24
run : echo "::set-output name=version::${GITHUB_REF/refs\/tags\//}"
25
- - name : Login to crates.io
26
- uses : actions-rs/cargo@v1
27
- with :
28
- command : login
29
- args : ${{ secrets.CARGO }}
25
+ - name : Commit version changes
26
+ run : |
27
+ git config --global user.name 'github-actions[bot]'
28
+ git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
30
29
- name : Set and publish workspace crates
30
+ env :
31
+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO }}
31
32
run : |
32
33
cargo install cargo-workspaces
33
34
cargo workspaces version custom ${{ steps.get_version.outputs.version }} \
34
- --exact --yes --no-individual-tags \
35
+ --exact --yes --no-git-tag --no-git-push \
35
36
-m "Commit new release ${{ steps.get_version.outputs.version }}"
36
- cargo workspaces publish --yes --no-verify
37
+ cargo workspaces publish --yes --no-verify --publish-as-is
38
+ - name : Push commit
39
+ run : |
40
+ git push origin ${{ github.event.repository.default_branch }}
You can’t perform that action at this time.
0 commit comments