-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4134560
commit c08ca5b
Showing
13 changed files
with
8,693 additions
and
76 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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
upload-release: | ||
|
||
runs-on: ubuntu-18.04 | ||
needs: | ||
- build-linux | ||
- build-windows | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: create release | ||
id: create_release | ||
uses: actions/create-release@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- name: download artifacts | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: uploads | ||
- name: upload linux | ||
id: upload-linux | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./uploads/app-linux.bin | ||
asset_name: ssh-tunnel-manager-linux-${{ github.ref_name }} | ||
asset_content_type: application/x-executable | ||
- name: upload windows | ||
id: upload-windows | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./uploads/app-windows.exe | ||
asset_name: ssh-tunnel-manager-windows-${{ github.ref_name }}.exe | ||
asset_content_type: application/x-dosexec | ||
|
||
build-linux: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8.10 | ||
- name: build executable | ||
run: | | ||
pip install -r requirements.txt | ||
pip install pyinstaller | ||
pyinstaller --onefile --noconsole --name app-linux.bin app.py | ||
- name: upload artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: uploads | ||
path: dist/app-linux.bin | ||
|
||
build-windows: | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8.10 | ||
- name: build executable | ||
run: | | ||
pip install -r requirements.txt | ||
pip install pyinstaller | ||
pyinstaller --onefile --noconsole --name app-windows.exe app.py | ||
- name: upload artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: uploads | ||
path: dist/app-windows.exe |
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
__pycache__ | ||
build | ||
dist | ||
app.spec | ||
.env | ||
config.yml | ||
config.yml-* | ||
.directory | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Oops, something went wrong.