+2
-1
.github/workflows/release.yaml
+2
-1
.github/workflows/release.yaml
···
22
goos: windows
23
steps:
24
- uses: actions/checkout@v3
25
- uses: wangyoucao577/go-release-action@v1
26
with:
27
github_token: ${{ secrets.PAT }}
28
goos: ${{ matrix.goos }}
29
goarch: ${{ matrix.goarch }}
30
-
ldflags: "-X main._version=${{ github.event.release.tag_name }}"
31
sha256sum: true
32
md5sum: false
···
22
goos: windows
23
steps:
24
- uses: actions/checkout@v3
25
+
- run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
26
- uses: wangyoucao577/go-release-action@v1
27
with:
28
github_token: ${{ secrets.PAT }}
29
goos: ${{ matrix.goos }}
30
goarch: ${{ matrix.goarch }}
31
+
ldflags: "-X main._version=${{ env.RELEASE_VERSION }}"
32
sha256sum: true
33
md5sum: false