summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-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: