Skip to content

Commit 716236c

Browse files
committed
wip update release
1 parent dc1f29d commit 716236c

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/go-build.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,9 @@ jobs:
6161
run: |
6262
CGO_ENABLED=0 GOOS=${{ matrix.GOOS }} GOARCH=${{ matrix.GOARCH}} go build -ldflags "-X github.com/iansinnott/browser-gopher/cmd.Version=${{ env.VERSION }}" -o ./dist/browser-gopher-${{ env.VERSION }}-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
6363
64-
- name: Upload Release Asset
65-
id: upload-release-asset
66-
uses: actions/upload-release-asset@v1
67-
env:
68-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
- name: Release
65+
uses: softprops/action-gh-release@v1
66+
if: startsWith(github.ref, 'refs/tags/')
6967
with:
70-
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
71-
asset_path: ./dist/browser-gopher-${{ env.VERSION }}-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
72-
asset_name: browser-gopher-${{ env.VERSION }}-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
73-
asset_content_type: application/octet-stream
68+
files: |
69+
./dist/browser-gopher-${{ env.VERSION }}-${{ matrix.GOOS }}-${{ matrix.GOARCH }}

0 commit comments

Comments
 (0)