Skip to content

更新 build-canary.yml #2

更新 build-canary.yml

更新 build-canary.yml #2

Workflow file for this run

name: Build Canary
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Build code
run: |
pip install pyinstaller
pyinstaller -F main.py -p core.py --hidden-import core
- name: Publish package
uses: actions/upload-artifact@v4
with:
name: Windows-Canary
path: .\dist\__init__.exe
if-no-files-found: error