Skip to content

Commit

Permalink
ci: add cargo.toml version changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayllyz committed Dec 19, 2024
1 parent 03caf20 commit 79679c7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
matrix:
include:
- os: windows-latest
- os: ubuntu-latest
- os: macos-latest
- os: ubuntu-latest
env:
Expand Down Expand Up @@ -83,6 +82,8 @@ jobs:

- name: Install Rust toolchain
uses: moonrepo/setup-rust@v1
with:
bins: cargo-edit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -91,6 +92,17 @@ jobs:
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

- name: Update Cargo.toml version
env:
NEW_VERSION: ${{ inputs.publish-tag }}
run: |
VERSION=${NEW_VERSION#v}
cargo set-version "${VERSION}"
git add Cargo.toml
git commit -m "chore: bump version to ${NEW_VERSION}"
git push
- name: Tag the version
env:
GIT_TAG: ${{ inputs.publish-tag }}
Expand Down

0 comments on commit 79679c7

Please sign in to comment.