Skip to content

Commit 4b14dbb

Browse files
Jayllyzanonrig
authored andcommitted
ci: add cargo.toml version changes
1 parent 8b1789d commit 4b14dbb

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
matrix:
2424
include:
2525
- os: windows-latest
26-
- os: ubuntu-latest
2726
- os: macos-latest
2827
- os: ubuntu-latest
2928
env:
@@ -83,6 +82,8 @@ jobs:
8382

8483
- name: Install Rust toolchain
8584
uses: moonrepo/setup-rust@v1
85+
with:
86+
bins: cargo-edit
8687
env:
8788
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8889

@@ -91,6 +92,17 @@ jobs:
9192
env:
9293
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
9394

95+
- name: Update Cargo.toml version
96+
env:
97+
NEW_VERSION: ${{ inputs.publish-tag }}
98+
run: |
99+
VERSION=${NEW_VERSION#v}
100+
cargo set-version "${VERSION}"
101+
102+
git add Cargo.toml
103+
git commit -m "chore: bump version to ${NEW_VERSION}"
104+
git push
105+
94106
- name: Tag the version
95107
env:
96108
GIT_TAG: ${{ inputs.publish-tag }}

0 commit comments

Comments
 (0)