Merge branch 'main' of https://github.com/AG4lyf/real_estate_managment #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |