Skip to content

chore: update actions, remove rename command #6

chore: update actions, remove rename command

chore: update actions, remove rename command #6

Workflow file for this run

name: PyInstaller Workflow
on:
push:
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'
- name: Install Poetry via pip
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 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: Upload PyInstaller build artifacts
uses: actions/upload-artifact@v4
with:
name: built-application
path: dist\1blckhrt-video_converter-v1.1.exe
- name: Create GitHub Release
id: create_release
uses: softprops/[email protected]
with:
tag_name: v1.1
release_name: "Release v1.1"
files: dist\1blckhrt-video_converter-v1.1.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}