Skip to content

Commit

Permalink
release assets automate
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed Dec 13, 2019
1 parent 92f4cb4 commit 4de9042
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,35 @@ jobs:
- Second Change
draft: false
prerelease: false

- name : upload linux assets
id: upload-release-asset-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: ./gopogh-linux-amd64
asset_name: gopogh-linux-amd64
asset_content_type: application/octet-stream
- name : upload mac assets
id: upload-release-asset-mac
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./gopogh-darwin-amd64
asset_name: gopogh-darwin-amd64
asset_content_type: application/octet-stream
- name : upload windows assets
id: upload-release-asset-winodw
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./gopogh.exe
asset_name: gopogh.exe
asset_content_type: application/octet-stream


0 comments on commit 4de9042

Please sign in to comment.