From 4de90429b03430e7d6bf5bbca6809a95039b7ba8 Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Fri, 13 Dec 2019 15:02:44 -0800 Subject: [PATCH] release assets automate --- .github/workflows/release.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 258606a..8f0f76b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,4 +50,35 @@ jobs: - Second Change draft: false prerelease: false - \ No newline at end of file + - name : upload linux assets + id: upload-release-asset-linux + uses: actions/upload-release-asset@v1.0.1 + 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/upload-release-asset@v1.0.1 + 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/upload-release-asset@v1.0.1 + 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 + +