Skip to content

Commit

Permalink
Handle version directly in release action (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnalh committed Apr 3, 2024
1 parent 5f074c8 commit a1ebb81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly

- name: Update version
run: |
export VERSION=${{ github.event.inputs.release_tag }}
sed -i "s/0.0.0/$VERSION/g" Cargo.toml
- name: Build ${{ matrix.target }} target
uses: ./.github/actions/build_target
if: "!cancelled()"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "trunk-analytics-cli"
edition = "2021"
version = "0.5.2"
version = "0.0.0"

[[bin]]
name = "trunk-analytics-cli"
Expand Down

0 comments on commit a1ebb81

Please sign in to comment.