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 #5 from RunbookSolutions/staging
Binary Release
- Loading branch information
Showing
3 changed files
with
66 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -27,3 +27,61 @@ jobs: | |
with: | ||
push: true | ||
tags: runbooksolutions/agent:latest, runbooksolutions/agent:${{ github.event.release.tag_name }} | ||
pyinstaller-build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
output: RBSAgent.exe | ||
- os: ubuntu-latest | ||
output: RBSAgent | ||
- os: macos-latest | ||
output: RBSAgent.app | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Build and Publish Executable | ||
uses: sayyid5416/pyinstaller@v1 | ||
with: | ||
python_ver: '3.9' # Adjust the Python version as needed | ||
spec: 'app.py' # Adjust the path to your .spec or .py file | ||
requirements: 'requirements.txt' # Adjust the path to your requirements.txt file | ||
upload_exe_with_name: ${{matrix.output}} # Adjust the desired artifact name | ||
options: --onefile, --name "RBSAgent", --windowed | ||
upload-release-assets: | ||
runs-on: ubuntu-latest | ||
needs: [pyinstaller-build] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
path: ./dist | ||
- 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: ./dist | ||
asset_name: RBSAgent.exe | ||
asset_content_type: application/x-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: ./dist | ||
asset_name: RBSAgent | ||
asset_content_type: application/x-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: ./dist | ||
asset_name: RBSAgent | ||
asset_content_type: application/x-executable |
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 |
---|---|---|
|
@@ -3,4 +3,7 @@ run | |
OLD | ||
hosts | ||
test.py | ||
__pycache__ | ||
__pycache__ | ||
app.spec | ||
build | ||
dist |
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