This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from RunbookSolutions/staging
Finished binary compile and release upload
- Loading branch information
Showing
2 changed files
with
62 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -50,40 +50,24 @@ jobs: | |
upload_exe_with_name: ${{matrix.output}} # Adjust the desired artifact name | ||
options: --onefile, --name "RBSAgent", --windowed | ||
upload-release-assets: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
needs: [pyinstaller-build] | ||
steps: | ||
- 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 | ||
uses: actions/[email protected] | ||
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/[email protected] | ||
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/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Zip MacOS Build | ||
run: cd RBSAgent-mac && zip -r9 RBSAgent RBSAgent.app | ||
- name: Move linux files | ||
run: | | ||
mv RBSAgent-linux/RBSAgent RBSAgent | ||
mv RBSAgent-mac/RBSAgent.zip RBSAgent.app.zip | ||
mv RBSAgent-windows/RBSAgent.exe RBSAgent.exe | ||
rm -rf RBSAgent-* | ||
- uses: shogo82148/actions-upload-release-asset@v1 | ||
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 | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./RBSAgent* | ||
overwrite: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters