diff options
author | Felix Kröner <felix.kroener@gmx.de> | 2024-11-10 13:39:26 +0100 |
---|---|---|
committer | Felix Kröner <felix.kroener@gmx.de> | 2024-11-10 14:05:33 +0100 |
commit | 0fb825f8e7f45777aa974a4f9f87b1ae96fa68a9 (patch) | |
tree | 58bcb2c4e86b193b9c82dedf62fc4073d8aba4fb /.github | |
parent | fix: dockerfile casing typo (diff) | |
download | forgejo-runner-0fb825f8e7f45777aa974a4f9f87b1ae96fa68a9.tar.xz forgejo-runner-0fb825f8e7f45777aa974a4f9f87b1ae96fa68a9.zip |
ci: Include version number in windows runner build
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-release.yml | 4 |
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: |