-
Notifications
You must be signed in to change notification settings - Fork 265
51 lines (42 loc) · 1.12 KB
/
main.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
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
architecture: 'x86'
name: 'win32'
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
architecture: ${{matrix.architecture}}
- name: Install requirements
run: |
pip install -r requirements.txt
pip install pyinstaller
- name: Build win bin
run: pyinstaller -F main.py -n 'chaoxing'
- name: run ls
run: |
ls dist
echo ${{github.ref}}
- name: Publish
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: 'dist/chaoxing*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.name }}
path: 'dist/chaoxing*'