From 83c783b0a20b8b65d1074a06b12359a6a8a8c9d4 Mon Sep 17 00:00:00 2001 From: "Sean E. Russell" Date: Sun, 7 Jun 2020 17:41:54 -0500 Subject: [PATCH] Fix version variable in workflow --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ef75c9..4ab16f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,16 +23,20 @@ jobs: - name: Generate gotop.go shell: bash run: go run ./build.go -r ${VERSION} github.com/xxxserxxx/gotop-remote github.com/xxxserxxx/gotop-nvidia + env: + VERSION: ${{ github.event.client_payload.tag }} - name: Compile shell: bash run: go build -o gotop -ldflags "-extldflags '-static' -X main.Version=${VERSION}+nvidia+remote -X main.BuildDate=$(date +%Y%m%dT%H%M%s)" ./gotop.go + env: + VERSION: ${{ github.event.client_payload.tag }} - name: Pre-release uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "${VERSION}+nvidia+remote" + automatic_release_tag: "${{ github.event.client_payload.tag }}+nvidia+remote" draft: false - title: "${VERSION} with NVidia & Remote extensions" + title: "${{ github.event.client_payload.tag }} with NVidia & Remote extensions" files: gotop