Files
e-ink-dash/.gitea/workflows/build-exe.yml
T
Imrayya 234965b1e1
Build Android APK / build (push) Failing after 3m42s
Build Server .exe / build (push) Has been cancelled
ci: add draft release steps to both workflows
- build-exe.yml: publishes PaperDash.exe to rolling-draft release
- build-apk.yml: publishes app-debug.apk to android-rolling-draft release
- Both use ncipollo/release-action with draft:true and allowUpdates
2026-07-01 11:27:47 +00:00

65 lines
1.5 KiB
YAML

name: Build Server .exe
on:
push:
branches: [main]
paths:
- "server/**"
- ".gitea/workflows/build-exe.yml"
pull_request:
branches: [main]
paths:
- "server/**"
- ".gitea/workflows/build-exe.yml"
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install dependencies
run: |
cd server
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
cd server
pip install pytest pytest-asyncio
pytest tests/ -v
- name: Build .exe
run: |
cd server
python build_exe.py
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: PaperDash.exe
path: server/dist/PaperDash.exe
if-no-files-found: error
- name: Update Rolling Draft Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
draft: true
tag: rolling-draft
name: "Draft (latest build)"
body: |
Latest PaperDash server build from commit ${{ gitea.sha }}.
Edit tag, name, and notes before publishing.
artifacts: "server/dist/PaperDash.exe"