We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38690b2 commit 1fe5c4bCopy full SHA for 1fe5c4b
.github/workflows/go.yml
@@ -2,8 +2,8 @@ name: Build and Release Windows EXE
2
3
on:
4
push:
5
- branches:
6
- - main
+ tags:
+ - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
7
8
jobs:
9
build:
@@ -18,6 +18,9 @@ jobs:
18
19
- name: Check out code
20
uses: actions/checkout@v2
21
+
22
+ - name: Set version env
23
+ run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
24
25
- name: Build Windows EXE
26
run: GOOS=windows GOARCH=amd64 go build -o tallycli.exe
@@ -28,8 +31,8 @@ jobs:
28
31
env:
29
32
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30
33
with:
- tag_name: ${{ github.ref }}
- release_name: Release ${{ github.ref }}
34
+ tag_name: ${{ env.RELEASE_VERSION }}
35
+ release_name: Release ${{ env.RELEASE_VERSION }}
36
draft: false
37
prerelease: false
38
0 commit comments