Skip to content

Commit

Permalink
fix(build): Compile binary with correct version number
Browse files Browse the repository at this point in the history
  • Loading branch information
tomphp committed Oct 24, 2023
1 parent 7ecd659 commit e4cfc2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -49,6 +54,8 @@ jobs:
steps:
- uses: tomphp/github-actions/[email protected]
- uses: actions/download-artifact@v3
- run: mv bumped-files/Cargo.* .
shell: bash
- uses: actions-rs/[email protected]
name: Build release version
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ versioned-files --version
```

```text, verify()
versioned-files 0.1.0
versioned-files 0.2.1
```

## Configuration
Expand Down

0 comments on commit e4cfc2d

Please sign in to comment.