Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cxjava committed Apr 27, 2020
1 parent ee8dfc0 commit 32b7131
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ jobs:
printf "\n\nSystem environment:\n\n"
env
- name: Set environment variables
run: |
echo ::set-env name=GOLANG_VERSION::$(go version)
echo ::set-env name=BUILT_BY::$(whoami)@$(hostname)
# GoReleaser will take care of publishing those artifacts into the release
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
Expand All @@ -66,3 +71,5 @@ jobs:
args: release --rm-dist --skip-validate --skip-sign --debug --config .github/goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOLANG_VERSION: ${{ env.GOLANG_VERSION }}
BUILT_BY: ${{ env.BUILT_BY }}

0 comments on commit 32b7131

Please sign in to comment.