Skip to content

Commit 7755485

Browse files
gold-ak47claude
andcommitted
fix: set correct version in binary before build
Cargo.toml version was lagging behind because semantic-release bumps it after the build. Now sed-inject the new version into Cargo.toml before cargo build so treble --version is correct. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d70b64f commit 7755485

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ jobs:
7676
with:
7777
targets: ${{ matrix.target }}
7878

79+
- name: Set version in Cargo.toml
80+
run: sed -i'' -e 's/^version = ".*"/version = "${{ needs.check-release.outputs.new_version }}"/' Cargo.toml
81+
7982
- name: Install cross-compilation tools (Linux ARM64)
8083
if: matrix.target == 'aarch64-unknown-linux-gnu'
8184
run: |

0 commit comments

Comments
 (0)