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

Commit

Permalink
Fix asset upload on release
Browse files Browse the repository at this point in the history
  • Loading branch information
sniper7kills committed Nov 28, 2023
1 parent 225c1a5 commit 8cb199a
Showing 1 changed file with 44 additions and 39 deletions.
83 changes: 44 additions & 39 deletions .github/workflows/release_created.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
matrix:
include:
- os: windows-latest
output: RBSAgent.exe
output: RBSAgent-windows
- os: ubuntu-latest
output: RBSAgent
output: RBSAgent-linux
- os: macos-latest
output: RBSAgent.app
output: RBSAgent-mac
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -57,40 +57,45 @@ jobs:
- uses: actions/download-artifact@v3
- name: Display structure of downloaded files
run: ls -alR
- name: Zip MacOS output
run: zip -r9 RBSAgent RBSAgent.app/ && mv RBSAgent.zip RBSAgent.app.zip
- name: Display structure of downloaded files
run: ls -alR
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./*RBSAgent*
overwrite: true
# - name: Zip MacOS output
# run: |
# zip -r9 RBSAgent RBSAgent.app/
# mv RBSAgent.zip RBSAgent.app.zip
# mv ./RBSAgent.exe/RBSAgent.exe ./

# - name: Display structure of downloaded files
# run: ls -alR

- name: Upload Release Asset Windows
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.exe/RBSAgent.exe
asset_name: RBSAgent.exe
asset_content_type: application/vnd.microsoft.portable-executable
- name: Upload Release Asset Linux
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/RBSAgent
asset_name: RBSAgent
asset_content_type: application/x-executable
- 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.zip
asset_name: RBSAgent
asset_content_type: application/zip
# - uses: shogo82148/actions-upload-release-asset@v1
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: ./RBSAgent*
# overwrite: true

# - name: Upload Release Asset Windows
# 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.exe/RBSAgent.exe
# asset_name: RBSAgent.exe
# asset_content_type: application/vnd.microsoft.portable-executable
# - name: Upload Release Asset Linux
# 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/RBSAgent
# asset_name: RBSAgent
# asset_content_type: application/x-executable
# - 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.zip
# asset_name: RBSAgent
# asset_content_type: application/zip

0 comments on commit 8cb199a

Please sign in to comment.