We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd9b5fd commit 4b92d00Copy full SHA for 4b92d00
1 file changed
.github/workflows/release.yml
@@ -66,12 +66,14 @@ jobs:
66
name: frontend-dist
67
path: window/dist
68
69
+ - name: Get version
70
+ id: version
71
+ run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
72
+
73
- name: Build desktop app
74
run: |
75
cd window
- VERSION=${GITHUB_REF#refs/tags/}
- BUILD_TIME=$(date -u '+%Y-%m-%d %H:%M:%S')
- go build -v -ldflags "-X main.version=${VERSION} -X main.buildTime=${BUILD_TIME}" -o ${{ matrix.artifact_name }}
76
+ go build -v -ldflags "-X main.version=${{ steps.version.outputs.VERSION }}" -o ${{ matrix.artifact_name }}
77
78
- name: Create release asset
79
0 commit comments