Skip to content

Commit 35bcaee

Browse files
Update build_and_release.yml
1 parent c64437d commit 35bcaee

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/build_and_release.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,23 @@ jobs:
2929
- os: windows-latest
3030
target: x86_64-windows
3131
runs-on: ${{ matrix.os }}
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
PR_NUMBER: ${{ github.event.number }}
35+
3236
steps:
3337
- uses: actions/checkout@v2
3438
- uses: goto-bus-stop/setup-zig@v2
3539
name: Setup zig
3640
with:
3741
version: 0.12.0
42+
43+
- name: "🏷️ Push tag"
44+
uses: EndBug/latest-tag@latest
45+
with:
46+
# You can change the name of the tag with this input.
47+
# Default: 'latest'
48+
tag-name: ${{env.PR_NUMBER}}
3849

3950
- name: Install dependencies (Ubuntu)
4051
if: matrix.os == 'ubuntu-latest'
@@ -52,9 +63,7 @@ jobs:
5263

5364
- name: Release
5465
uses: softprops/action-gh-release@v1
55-
# if: startsWith(github.ref, 'refs/tags/')
66+
if: startsWith(github.ref, 'refs/tags/')
5667
with:
5768
files: |
5869
zig-out/bin/*
59-
env:
60-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)