Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Oct 12, 2019
1 parent ae00962 commit c23767b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit c23767b

Please sign in to comment.