Skip to content

Commit

Permalink
change workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mojocn committed Nov 8, 2019
1 parent 95abb88 commit d4f3e24
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/go.yml
Expand Up @@ -24,13 +24,15 @@ jobs:
uses: actions/checkout@v1

- name: echo git hash
run: echo ${{ github.sha }} > Release.txt
run: echo "${{ github.sha }} \n\r ${{ steps.current-time.outputs.time }}" > Release.txt
- name: Build Golang Executorable Release
run: go build -ldflags "-s -w -X main.buildTime='${{ steps.current-time.outputs.time }}' -X main.gitHash=${{ github.sha }}" -o sshfortress_${{ matrix.platform }}.release
run: go build -ldflags "-s -w -X main.buildTime=${{ steps.current-time.outputs.time }} -X main.gitHash=${{ github.sha }}" -o sshfortress_${{ matrix.platform }}.release
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: sshfortress_${{ matrix.platform }}.release
files: |
sshfortress_${{ matrix.platform }}.release
Release.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d4f3e24

Please sign in to comment.