feat: 支持通过Npm启动项目 #2
Workflow file for this run
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 beta | |
on: | |
push: | |
branches: | |
- beta | |
jobs: | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v2 | |
- name: Setup Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install pyinstaller | |
run: python -m pip install pyinstaller | |
- name: Install dependencies | |
run: python -m pip install -r ./requirements.txt | |
- name: Build EXE | |
run: python build.py build test | |
- name: Upload | |
uses: actions/upload-artifact@v2 | |
with: | |
name: windows | |
path: ./dist | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v2 | |
- name: Setup Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install pyinstaller | |
run: python -m pip install pyinstaller | |
- name: Install dependencies | |
run: python -m pip install -r ./requirements.txt | |
- name: Build Executable | |
run: python build.py build test | |
- name: Upload | |
uses: actions/upload-artifact@v2 | |
with: | |
name: linux | |
path: ./dist |