Skip to content

Commit

Permalink
Use multi-OS sed.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdappollonio committed Aug 27, 2024
1 parent 261acbf commit 1bc82c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
# 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
if [[ "${{ runner.os }}" == "macos-latest" ]]; then
sed -i "" "s/^version = .*/version = \"$TAG_NAME\"/" Cargo.toml
else
sed -i "s/^version = .*/version = \"$TAG_NAME\"/" Cargo.toml
fi
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: gc-rust
Expand Down

0 comments on commit 1bc82c9

Please sign in to comment.