Skip to content

Commit

Permalink
fix(build): update version + lockfile and ensure correctness in ci (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored Mar 2, 2024
1 parent dc8122a commit 52cf618
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ jobs:
- name: Install dependencies
run: |
${{ matrix.packages_install }}
- name: Get version
run: echo "VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
- name: Ensure version in Cargo.toml is correct
if: startsWith(github.ref, 'refs/tags/')
# Fails if the version does not match
run: grep -q "name = \"tmux-sessionizer\"\nversion = \"${VERSION//v}\"" Cargo.toml
- name: Ensure Cargo.lock is up to date
# Fails if lockfile needs to be updated
run: cargo generate-lockfile --frozen
- name: Build artifacts
run: |
# Actually do builds and make zips and whatnot
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,6 +1,6 @@
[package]
name = "tmux-sessionizer"
version = "0.4.2"
version = "0.4.3"
authors = ["Jared Moulton <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down

0 comments on commit 52cf618

Please sign in to comment.