Skip to content

Commit 4ae94a6

Browse files
committed
final-2
1 parent e2b2bec commit 4ae94a6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build_release.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,12 @@ jobs:
4545

4646
- name: Update Cargo.toml version
4747
run: |
48-
#sed -i '/\[package\]/,/^version = /s/^version = .*/version = \"${{ github.event.release.tag_name }}\"/' Cargo.toml
4948
if [[ "${{ matrix.runner }}" == "macos-latest" ]]; then
50-
sed -i '' '/\[package\]/,/^version = /s/^version = .*/version = "0.2.1"/' Cargo.toml
49+
sed -i '' '/\[package\]/,/^version = /s/^version = .*/version = "${{ github.event.release.tag_name }}"/' Cargo.toml
5150
cat Cargo.toml
5251
fi
5352
if [[ "${{ matrix.runner }}" == "ubuntu-latest" ]]; then
54-
sed -i '/\[package\]/,/^version = /s/^version = .*/version = \"0.2.1\"/' Cargo.toml
53+
sed -i '/\[package\]/,/^version = /s/^version = .*/version = \"${{ github.event.release.tag_name }}\"/' Cargo.toml
5554
cat Cargo.toml
5655
fi
5756

0 commit comments

Comments
 (0)