-
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.
- Loading branch information
Showing
3 changed files
with
133 additions
and
35 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 |
---|---|---|
@@ -1,59 +1,40 @@ | ||
name: PyInstaller Workflow | ||
name: Package Application with PyInstaller | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.12.6' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Poetry via pip | ||
- name: Install Poetry | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
echo "Poetry installed" | ||
- name: Run poetry lock to sync lock file | ||
run: | | ||
poetry lock --no-update | ||
echo "Lock file updated" | ||
- name: Install Project Dependencies | ||
run: poetry install | ||
|
||
- name: Install dependencies using Poetry | ||
run: | | ||
poetry install --only main | ||
- name: Install PyInstaller | ||
run: poetry add pyinstaller --dev | ||
|
||
- name: Define version and build with PyInstaller | ||
run: | | ||
$version = "1.1" | ||
$outputName = "1blckhrt-video_converter-v$version.exe" | ||
poetry run pyinstaller --onefile --name $outputName src\main.py | ||
- name: Package Application | ||
run: poetry run pyinstaller --onefile --name 1blckhrt-video_converter-v1.1.exe src/main.py | ||
working-directory: src | ||
|
||
- name: Upload PyInstaller build artifacts | ||
uses: actions/upload-artifact@v4 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: built-application | ||
path: dist\1blckhrt-video_converter-v1.1.exe | ||
path: src/dist/1blckhrt-video_converter-v1.1.exe | ||
|
||
- name: Create GitHub Release | ||
id: create_release | ||
uses: softprops/[email protected] | ||
with: | ||
tag_name: v1.1 | ||
name: "Release v1.1" | ||
files: dist\* | ||
files: src/dist/1blckhrt-video_converter-v1.1.exe | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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