Skip to content

Commit 58efebf

Browse files
committed
Refactor publish.yml to streamline version bump process
1 parent 9973554 commit 58efebf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ jobs:
4343
- name: Update version in Cargo.toml
4444
run: cargo set-version ${{ steps.get_version.outputs.VERSION }}
4545

46+
- name: Commit version bump
47+
uses: stefanzweifel/git-auto-commit-action@v5
48+
with:
49+
commit_message: "Bump version to ${{ steps.get_version.outputs.VERSION }}"
50+
file_pattern: 'Cargo.toml Cargo.lock'
51+
4652
- name: Publish to Cargo
4753
uses: actions-rs/cargo@v1
4854
with:
4955
command: publish
5056
env:
5157
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
52-
53-
- name: Commit version bump
54-
uses: stefanzweifel/git-auto-commit-action@v5
55-
with:
56-
commit_message: "Bump version to ${{ steps.get_version.outputs.VERSION }}"
57-
file_pattern: 'Cargo.toml'

0 commit comments

Comments
 (0)