-
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.
Merge pull request #15 from nickpgill/master
Updated to Python 3.11
- Loading branch information
Showing
9 changed files
with
166 additions
and
562 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,130 @@ | ||
name: Release Executables | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
# | ||
# 1. Build Windows Executable | ||
# | ||
build-windows-exe: | ||
name: 'script.exe creation using python 3.11 on Windows' | ||
runs-on: 'windows-latest' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# https://github.com/actions/setup-python | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.11' | ||
# https://hynek.me/articles/python-github-actions/ | ||
- name: "Install dependencies" | ||
run: | | ||
python -VV | ||
python -m site | ||
python -m pip install --upgrade pip | ||
pip install pyyaml | ||
pip install argparse | ||
pip install pyinstaller==6.10.0 | ||
pip install eel==0.17.0 | ||
pip install cvxpy==1.5.3 | ||
pip install gspread==6.1.2 | ||
pip install mip | ||
pip install oauth2client==4.1.3 | ||
pip install toml==0.10.2 | ||
python -m eel script.py web -n strat-select-win.exe --additional-hooks-dir=. --onefile --noconsole | ||
mkdir -p target/release | ||
mv dist/strat-select-win.exe target/release | ||
# copy nicks-script.exe to the release | ||
# | ||
# https://github.com/marketplace/actions/upload-files-to-a-github-release | ||
- name: upload executable to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/release/strat-select-win.exe | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
body: "script release text" | ||
# | ||
# 2. Build MacOS Executable | ||
# | ||
build-macos-executable: | ||
name: 'script.app creation using python 3.11 on MacOS' | ||
runs-on: 'macos-latest' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# https://github.com/actions/setup-python | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.11' | ||
# https://hynek.me/articles/python-github-actions/ | ||
- name: "Install dependencies" | ||
run: | | ||
python -VV | ||
python -m site | ||
python -m pip install --upgrade pip | ||
pip install pyyaml | ||
pip install argparse | ||
pip install pyinstaller==6.10.0 | ||
pip install eel==0.17.0 | ||
pip install cvxpy==1.5.3 | ||
pip install gspread==6.1.2 | ||
pip install mip | ||
pip install oauth2client==4.1.3 | ||
pip install toml==0.10.2 | ||
python -m eel script.py web -n strat-select-macos --additional-hooks-dir=. --onefile --noconsole | ||
mkdir -p target/release | ||
mv dist/strat-select-macos target/release | ||
# copy script.app to the release | ||
# | ||
# https://github.com/marketplace/actions/upload-files-to-a-github-release | ||
- name: upload exectuable to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/release/strat-select-macos | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
body: "script release text" | ||
# | ||
# 3. Build Linux Executable | ||
# | ||
build-linux-executable: | ||
name: 'executable creation using python 3.11 on Linux' | ||
runs-on: 'ubuntu-24.04' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# https://github.com/actions/setup-python | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.11' | ||
# https://hynek.me/articles/python-github-actions/ | ||
- name: "Install dependencies" | ||
run: | | ||
python -VV | ||
python -m site | ||
python -m pip install --upgrade pip | ||
pip install pyyaml | ||
pip install argparse | ||
pip install pyinstaller==6.10.0 | ||
pip install eel==0.17.0 | ||
pip install cvxpy==1.5.3 | ||
pip install gspread==6.1.2 | ||
pip install mip | ||
pip install oauth2client==4.1.3 | ||
pip install toml==0.10.2 | ||
python -m eel script.py web -n strat-select-linux --additional-hooks-dir=. --onefile --noconsole | ||
mkdir -p target/release | ||
mv dist/strat-select-linux target/release | ||
# copy script.app to the release | ||
# | ||
# https://github.com/marketplace/actions/upload-files-to-a-github-release | ||
- name: upload exectuable to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/release/strat-select-linux | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
body: "script release text" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.