Skip to content

Commit

Permalink
Improve code.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdappollonio committed Aug 27, 2024
1 parent c32b58c commit 261acbf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ jobs:
- uses: actions/checkout@v4
- run: |
# Update the version in Cargo.toml
GITHUB_REF="${GITHUB_REF#v}"
sed -i "s/^version = .*/version = \"$GITHUB_REF\"/" 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 261acbf

Please sign in to comment.