Skip to content

Commit 46a027d

Browse files
authored
Create build.yml
1 parent adece21 commit 46a027d

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: build
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [windows-latest]
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Run build on ${{ matrix.os }}
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.9.9"
21+
22+
- name: Install dependencies
23+
run: |
24+
python3 -m pip install --upgrade pip
25+
pip3 install pyinstaller
26+
pip install pillow
27+
pip3 install -r "requirements.txt"
28+
29+
30+
- name: Build tpp using tppbuild
31+
run: |
32+
python3 "./build.py"
33+
34+
35+
36+
37+
- name: uploading tpp for ${{ matrix.os}}
38+
uses: svenstaro/upload-release-action@v2
39+
with:
40+
repo_token: ${{ secrets.GITHUB_TOKEN }}
41+
file: |
42+
./*.tpp
43+
overwrite: true
44+
file_glob: true

0 commit comments

Comments
 (0)