We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b1789d commit 4b14dbbCopy full SHA for 4b14dbb
.github/workflows/release.yml
@@ -23,7 +23,6 @@ jobs:
23
matrix:
24
include:
25
- os: windows-latest
26
- - os: ubuntu-latest
27
- os: macos-latest
28
- os: ubuntu-latest
29
env:
@@ -83,6 +82,8 @@ jobs:
83
82
84
- name: Install Rust toolchain
85
uses: moonrepo/setup-rust@v1
+ with:
86
+ bins: cargo-edit
87
88
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89
@@ -91,6 +92,17 @@ jobs:
91
92
93
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
94
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
106
- name: Tag the version
107
108
GIT_TAG: ${{ inputs.publish-tag }}
0 commit comments