Skip to content

Commit d4f3e24

Browse files
committed
change workflow
1 parent 95abb88 commit d4f3e24

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/go.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ jobs:
2424
uses: actions/checkout@v1
2525

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

0 commit comments

Comments
 (0)