Update build.yml #6
This file contains hidden or 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
name: Build Python Application | ||
on: | ||
push: | ||
branches: [ main, master, develop ] | ||
pull_request: | ||
branches: [ main, master ] | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ['3.9'] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pyinstaller | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
shell: bash | ||
- name: Build with PyInstaller | ||
run: | | ||
pyinstaller go-dispatch-proxy-gui.spec | ||
- name: Upload build artifacts | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
name: dist-${{ matrix.os }} | ||
path: | dist/ | ||