summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Kröner <felix.kroener@gmx.de>2024-11-10 13:39:26 +0100
committerFelix Kröner <felix.kroener@gmx.de>2024-11-10 14:05:33 +0100
commit0fb825f8e7f45777aa974a4f9f87b1ae96fa68a9 (patch)
tree58bcb2c4e86b193b9c82dedf62fc4073d8aba4fb
parentfix: dockerfile casing typo (diff)
downloadforgejo-runner-0fb825f8e7f45777aa974a4f9f87b1ae96fa68a9.tar.xz
forgejo-runner-0fb825f8e7f45777aa974a4f9f87b1ae96fa68a9.zip
ci: Include version number in windows runner build
-rw-r--r--.github/workflows/build-release.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml
index 8086590..4524591 100644
--- a/.github/workflows/build-release.yml
+++ b/.github/workflows/build-release.yml
@@ -19,7 +19,9 @@ jobs:
- name: Build for ${{matrix.architecture}}
run: |
env GOOS=windows GOARCH=${{matrix.architecture}} \
- go build -o forgejo-runner-windows-${{matrix.architecture}}.exe
+ go build \
+ -ldflags "-s -w -X gitea.com/gitea/act_runner/internal/pkg/ver.version=${{ github.ref_name }}" \
+ -o forgejo-runner-windows-${{matrix.architecture}}.exe
- uses: actions/upload-artifact@v4
with: