Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.

Commit

Permalink
Fix version variable in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxserxxx committed Jun 7, 2020
1 parent a0c7283 commit 83c783b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 83c783b

Please sign in to comment.