tinyweb/.forgejo/workflows/build.yml
lichenblankie ac088cc291
Some checks failed
/ build (push) Failing after 2m7s
Fixed workflow build
2026-04-11 04:23:48 +00:00

40 lines
932 B
YAML

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: https://code.forgejo.org/actions/checkout@v4
- name: Set up Python
uses: https://code.forgejo.org/actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pyinstaller
- name: Build with PyInstaller
run: |
pyinstaller --onefile --console --name TinyWeb app.py
- name: Prepare artifact
run: |
cp dist/TinyWeb TinyWeb-linux-x64
chmod +x TinyWeb-linux-x64
gzip -k TinyWeb-linux-x64
- name: Upload artifact
uses: https://code.forgejo.org/actions/upload-artifact@v4
with:
name: TinyWeb-linux-x64
path: TinyWeb-linux-x64.gz