Skip to content

Commit e1b17e0

Browse files
deploy: Fix action
Signed-off-by: Patrick José Pereira <[email protected]>
1 parent 26ecf38 commit e1b17e0

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/deploy.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@master
1313
with:
1414
fetch-depth: 0
15-
ref: ${{ github.event.pull_request.head.ref }}
15+
ref: ${{ github.event.repository.default_branch }}
1616
- uses: actions-rs/[email protected]
1717
with:
1818
toolchain: stable
@@ -22,15 +22,19 @@ jobs:
2222
- name: Extract version from tag
2323
id: get_version
2424
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'
3029
- name: Set and publish workspace crates
30+
env:
31+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO }}
3132
run: |
3233
cargo install cargo-workspaces
3334
cargo workspaces version custom ${{ steps.get_version.outputs.version }} \
34-
--exact --yes --no-individual-tags \
35+
--exact --yes --no-individual-tags --no-git-tag --no-git-push\
3536
-m "Commit new release ${{ steps.get_version.outputs.version }}"
3637
cargo workspaces publish --yes --no-verify
38+
- name: Push commit
39+
run: |
40+
git push origin ${{ github.event.repository.default_branch }}

0 commit comments

Comments
 (0)