diff --git a/.gitea/workflows/pommer_build.yaml b/.gitea/workflows/pommer_build.yaml new file mode 100644 index 0000000..70df1b9 --- /dev/null +++ b/.gitea/workflows/pommer_build.yaml @@ -0,0 +1,31 @@ +name: Build Pommer Executable + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pyinstaller + - name: Build executable with PyInstaller + run: | + pyinstaller --onefile pommer/pommer.py --name pommer + - name: Upload executable artifact + uses: actions/upload-artifact@v3 + with: + name: pommer-linux + path: dist/pommer \ No newline at end of file