helloplhm-qwq 4e004ff33f chore: 放弃
可恶,签名签不上了
2023-11-11 23:52:59 +08:00

40 lines
945 B
YAML

# this workflow using github actions to build a binary exe file for windows users
name: build Windows exe
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
branches: [main]
jobs:
build-exe:
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
env:
actions: T
run: pyinstaller -F --name lx-music-api-server_${{ github.sha }} main.py
- name: Upload
uses: actions/upload-artifact@v2
with:
name: lx-music-api-server
path: ./dist