Merge pull request #1 from nlpng/update-upload-artifact-version #2
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
name: Build for Windows | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
windows-build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout commit | |
uses: actions/checkout@master | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@master | |
with: { python-version: 3.8 } | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip PyInstaller | |
- name: Install packages | |
run: python -m pip install -r requirements.txt | |
- name: build | |
run: pyinstaller main_gui.py --onefile | |
- name: upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sample-windows | |
path: dist/sample.exe |