-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 996 Bytes
/
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
name: Package Application with Pyinstaller
on:
push:
branches:
- main # Modify this based on the branch you want to trigger the action on
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Install dependencies
run: |
pip install -r ./requirements.txt
pip install pyinstaller
- name: Build executable
run: pyinstaller --onefile --add-data "templates;templates" --add-data "static;static" --add-data "scripts;scripts" main.py
- name: Move stuff in correct location
run: |
mv ./dist/main.exe .
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Real Esatate Management system
path: |
./main.exe
./data.json
./backup/ignore
./exports/ignore