diff --git a/.gitea/workflows/pyinstaller.yml b/.gitea/workflows/pyinstaller.yml index 0fa180c..7c0358c 100644 --- a/.gitea/workflows/pyinstaller.yml +++ b/.gitea/workflows/pyinstaller.yml @@ -1,30 +1,33 @@ -name: Versatile PyInstaller -uses: sayyid5416/pyinstaller@v1.8.0 +name: Package Application with PyInstaller on: - push: - pull_request: - workflow_dispatch: - inputs: - logLevel: - description: 'Log level' - required: true - default: 'warning' - type: choice - options: - - info - - warning - - debug + push: + branches: + - main jobs: - pyinstaller-build: - runs-on: ubuntu-latest + build: + runs-on: windows-latest steps: - - name: Create Executable - uses: sayyid5416/pyinstaller@v1 + + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 with: - python-version: 3.14 - pyinstaller_ver: '==6.14.0' - spec: 'main.spec' - requirements: 'requirements.txt' - upload_exe_with_name: 'steamPathCLI' - options: --onefile, --name "SteamPathsCLI", - spec_options: # any custom arguments you want like: `--debug` \ No newline at end of file + python-version: '3.10' + + - name: Install dependencies + run: > + python -m pip install --upgrade pip + + pip install . # Install dependencies; modify if using requirements.txt + + - name: Package Application with PyInstaller + run: | + pyinstaller steamPathCLI.spec + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: steamPathCLI + path: dist/steamPathCLI.exe \ No newline at end of file