diff --git a/.gitea/workflows/run-mucapy.yml b/.gitea/workflows/run-mucapy.yml new file mode 100644 index 0000000..0995af7 --- /dev/null +++ b/.gitea/workflows/run-mucapy.yml @@ -0,0 +1,43 @@ +name: Build MuCaPy Executable + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + + jobs: + build-and-package: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Install PyInstaller + run: pip install pyinstaller + + - name: Build executable with PyInstaller + run: | + pyinstaller --onefile --windowed mucapy/main.py \ + --add-data "mucapy/styling:styling" \ + --add-data "mucapy/models:models" \ + --add-data "mucapy/todopackage:todopackage" + + - name: Upload executable artifact + uses: actions/upload-artifact@v3 + with: + name: mucapy-executable + path: dist/ + + \ No newline at end of file