Skip to content

Commit

Permalink
Show correct Version in Release
Browse files Browse the repository at this point in the history
  • Loading branch information
6uhrmittag committed Oct 2, 2021
1 parent 95b93ad commit aba9f8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,21 @@ jobs:
echo "GO111MODULE=on" >> $GITHUB_ENV
echo "GOPROXY=https://proxy.golang.org" >> $GITHUB_ENV
echo "$(dirname $GITHUB_WORKSPACE)/bin" >> $GITHUB_PATH
GIT_HASH="$(git rev-parse --short "$GITHUB_SHA")"
echo "BRANCHNAME=$(echo $GITHUB_REF | rev | cut -d / -f1 | rev)" >> $GITHUB_ENV
shell: bash

- name: build release
run: |
ls -la
cd $GITHUB_WORKSPACE
GIT_HASH="$(git rev-parse --short "$GITHUB_SHA")"
GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build boilr.go && tar czvf boilr-${GIT_HASH}-linux_amd64.tgz boilr
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build - Branch ${{ env.GITHUB_REF }}"
title: "Development Build - Branch ${{ env.BRANCHNAME }}"
files: |
*.tgz
Expand Down

0 comments on commit aba9f8a

Please sign in to comment.