Skip to content

Commit 12b9143

Browse files
committed
Use Ninja versions as tags for ninja publish job
1 parent 3db956b commit 12b9143

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ninja-build-static.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ jobs:
7474
contents: write
7575
runs-on: ubuntu-latest
7676
needs: build
77+
# We never want the DkCoder version numbers to conflict with the Ninja releases.
78+
# So use tags that are real Ninja versions. Example: ninja-1.12.1
79+
if: startsWith(github.ref, 'refs/tags/ninja-')
7780
steps:
7881
- name: Download ninja binaries
7982
uses: actions/download-artifact@v4
@@ -82,7 +85,6 @@ jobs:
8285
merge-multiple: true
8386
- name: Release
8487
uses: softprops/action-gh-release@v2
85-
if: startsWith(github.ref, 'refs/tags/')
8688
with:
8789
files: |
8890
ninja-linux_x86_64

0 commit comments

Comments
 (0)