From 6db97edb7d3ef5be5a816a6d611f1ad52c78e892 Mon Sep 17 00:00:00 2001 From: Will G Date: Mon, 27 Nov 2023 19:27:51 -0500 Subject: [PATCH] Fix asset upload on release --- .github/workflows/release_created.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release_created.yml b/.github/workflows/release_created.yml index 96e7974..d6dfdf1 100644 --- a/.github/workflows/release_created.yml +++ b/.github/workflows/release_created.yml @@ -56,8 +56,6 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - uses: actions/download-artifact@v3 - with: - path: ./ - name: Display structure of downloaded files run: ls -alR - name: Upload Release Asset Windows @@ -68,7 +66,7 @@ jobs: upload_url: ${{ github.event.release.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: ./RBSAgent.exe asset_name: RBSAgent.exe - asset_content_type: application/x-executable + asset_content_type: application/vnd.microsoft.portable-executable - name: Upload Release Asset Linux uses: actions/upload-release-asset@v1.0.1 env: @@ -78,12 +76,15 @@ jobs: asset_path: ./RBSAgent asset_name: RBSAgent asset_content_type: application/x-executable - - name: Upload Release Asset Max + + - name: Zip MacOS output + run: zip -r9 RBSAgent.app RBSAgent.app/ + - name: Upload Release Asset Mac uses: actions/upload-release-asset@v1.0.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ github.event.release.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: ./RBSAgent.app + asset_path: ./RBSAgent.app.zip asset_name: RBSAgent - asset_content_type: application/x-executable \ No newline at end of file + asset_content_type: application/zip \ No newline at end of file