Skip to content

Commit

Permalink
Ensure versions in Cargo.toml match the version in tag. (#2)
Browse files Browse the repository at this point in the history
* Ensure versions in Cargo.toml match the version in tag.

* Improve code.
  • Loading branch information
patrickdappollonio authored Aug 27, 2024
1 parent e9e5515 commit ca44bfb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: |
# Update the version in Cargo.toml
TAG_NAME="${{ github.event.release.tag_name }}"
TAG_NAME="${TAG_NAME#v}"
sed -i "s/^version = .*/version = \"$TAG_NAME\"/" Cargo.toml
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: gc-rust
Expand Down

0 comments on commit ca44bfb

Please sign in to comment.