-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 976 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build
on:
push:
paths:
- '**.py'
pull_request:
jobs:
Windows-Build:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.9'
architecture: 'x64'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build Executable File
run: |
pyinstaller --collect-all yangcong_tools -F main.py
- name: Upload Executable File
uses: actions/upload-artifact@v3
with:
name: yangcong_tools-test_version
path: dist/main.exe
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/main.exe