From e4cfc2d615aa957cc55cb56097ee67560774b589 Mon Sep 17 00:00:00 2001 From: Tom Oram Date: Tue, 24 Oct 2023 09:03:08 +0100 Subject: [PATCH] fix(build): Compile binary with correct version number --- .github/workflows/pipeline.yml | 9 ++++++++- README.md | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index d9e9dc7..499c496 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -34,11 +34,16 @@ jobs: run: cargo set-version "${NEW_VERSION#v}" env: NEW_VERSION: ${{ needs.run-tests.outputs.bump-version }} + - run: sed -i.bak 's/versioned-files \\d+\\.\\d+\\.\\d+/versioned-files '$NEW_VERSION'/' README.md + env: + NEW_VERSION: ${{ needs.run-tests.outputs.bump-version }} - name: Store updated Cargo files uses: actions/upload-artifact@v3 with: name: bumped-files - path: Cargo.* + path: | + Cargo.* + README.md build-binaries: if: github.ref == 'refs/heads/main' @@ -49,6 +54,8 @@ jobs: steps: - uses: tomphp/github-actions/checkout-rust-project@v0.2.0 - uses: actions/download-artifact@v3 + - run: mv bumped-files/Cargo.* . + shell: bash - uses: actions-rs/cargo@v1.0.3 name: Build release version with: diff --git a/README.md b/README.md index 0cf94b8..579d9a6 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ versioned-files --version ``` ```text, verify() -versioned-files 0.1.0 +versioned-files 0.2.1 ``` ## Configuration