Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from RunbookSolutions/staging
Browse files Browse the repository at this point in the history
Fix asset upload on release
  • Loading branch information
sniper7kills authored Nov 28, 2023
2 parents 526f590 + 39cf645 commit 7a1a66c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release_created.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/download-artifact@v3
- name: Zip MacOS output
run: zip -r9 RBSAgent.app RBSAgent.app/RBSAgent.app
- name: Display structure of downloaded files
run: ls -alR
- name: Upload Release Asset Windows
Expand All @@ -64,7 +66,7 @@ jobs:
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.exe
asset_path: ./RBSAgent.exe/RBSAgent.exe
asset_name: RBSAgent.exe
asset_content_type: application/vnd.microsoft.portable-executable
- name: Upload Release Asset Linux
Expand All @@ -73,12 +75,9 @@ jobs:
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
asset_path: ./RBSAgent/RBSAgent
asset_name: RBSAgent
asset_content_type: application/x-executable

- name: Zip MacOS output
run: zip -r9 RBSAgent.app RBSAgent.app/
- name: Upload Release Asset Mac
uses: actions/[email protected]
env:
Expand Down

0 comments on commit 7a1a66c

Please sign in to comment.