-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·47 lines (39 loc) · 1.02 KB
/
build.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
name: Build
on:
push:
paths:
- client/*
- .github/workflows/build.yml
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install requirements
run: |
cd client
python -m venv .venv
. ./.venv/Scripts/activate
pip install -r ./requirements.txt
- name: Create srvrcfg.py
run: |
echo "SERVERURL = \"${{secrets.SERVERURL}}\"
TIMEOUT = 3
headers = {
"authorization": "Bearer ${{secrets.ACCESS_TOKEN}}"
}" > client/srvrcfg.py
ls client
- name: Package Application
run: |
cd client
. ./.venv/Scripts/activate
python ./build-exe.py
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: generator
path: client/dist/generator.exe