Skip to content

Commit

Permalink
ci: fix up versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
llogick committed Nov 24, 2024
1 parent 282262f commit 3c1694f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Deploy release artifacts

on:
push:
# branches:
# - dev
# push:
# branches:
# - dev
workflow_dispatch:

jobs:
build:
# if: github.repository_owner == 'llogick' && github.ref == 'refs/heads/dev'
# if: github.repository_owner == 'llogick' && github.ref == 'refs/heads/dev'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -67,6 +67,7 @@ jobs:
- uses: softprops/action-gh-release@v2
with:
name: ${{ env.PROJECT_VERSION }}
tag_name: ${{ env.PROJECT_VERSION }}
draft: true
make_latest: true
files: "*.zip"
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ fn getVersion(b: *Build) std.SemanticVersion {

var code: u8 = undefined;
const git_describe_untrimmed = b.runAllowFail(
&.{ "git", "-C", b.pathFromRoot("."), "describe", "--match", "*.*.*", "--tags" },
&.{ "git", "-C", b.pathFromRoot("."), "describe", "--match", "*.*.0", "--tags" },
&code,
.Ignore,
) catch return proj_version;
Expand Down

0 comments on commit 3c1694f

Please sign in to comment.