-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,12 @@ jobs: | |
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o simple-windows-x64.exe cmd/simple/main.go | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o simple-linux-x64 cmd/simple/main.go | ||
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o simple-darwin-x64 cmd/simple/main.go | ||
zip simple-${{ github.ref }}-windows-x64.zip simple-windows-x64.exe | ||
zip simple-${{ github.ref }}-linux-x64.zip simple-linux-x64 | ||
zip simple-${{ github.ref }}-darwin-x64.zip simple-darwin-x64 | ||
zip simple-windows-x64.zip simple-windows-x64.exe | ||
zip simple-linux-x64.zip simple-linux-x64 | ||
zip simple-darwin-x64.zip simple-darwin-x64 | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1.0.0 | ||
uses: monkeyWie/create-release@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
@@ -40,24 +40,24 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
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 | ||
asset_path: ./simple-${{ github.ref }}-windows-x64.zip | ||
asset_name: simple-${{ github.ref }}-windows-x64.zip | ||
asset_path: ./simple-windows-x64.zip | ||
asset_name: simple-${{ steps.create_release.outputs.tag }}-windows-x64.zip | ||
asset_content_type: application/zip | ||
- name: Upload Release linux | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
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 | ||
asset_path: ./simple-${{ github.ref }}-linux-x64.zip | ||
asset_name: simple-${{ github.ref }}-linux-x64.zip | ||
asset_path: ./simple-linux-x64.zip | ||
asset_name: simple-${{ steps.create_release.outputs.tag }}-linux-x64.zip | ||
asset_content_type: application/zip | ||
- name: Upload Release darwin | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
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 | ||
asset_path: ./simple-${{ github.ref }}-darwin-x64.zip | ||
asset_name: simple-${{ github.ref }}-darwin-x64.zip | ||
asset_path: ./simple-darwin-x64.zip | ||
asset_name: simple-${{ steps.create_release.outputs.tag }}-darwin-x64.zip | ||
asset_content_type: application/zip |