更新配置,更新读我,v0.1.2,创建工作流文件 #1
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 GUI Application | |
on: | |
push: | |
branches: | |
- main # 分支名 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Install Nuitka | |
run: pip install nuitka | |
- name: Compile with Nuitka | |
run: | | |
nuitka --standalone --onefile --output-dir=./build app.py | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: compiled-app | |
path: ./build/ |