Files
LOGAR/.gitea/workflows/release.yml
T
me0nline ca8b0153fa
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 1m24s
Release Binaries & Packages / Build & Release Standalone Binaries (Linux & Windows Cross-Compilation) (push) Successful in 3m44s
fix(ci): fix PyInstaller import casing and ensure pip packages are satisfied
2026-09-30 18:32:11 +02:00

47 lines
1.6 KiB
YAML

name: Release Binaries & Packages
on:
push:
tags:
- 'v*'
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: 'Release tag to publish assets to (default: v0.3.1)'
required: false
default: 'v0.3.1'
jobs:
release:
name: Build & Release Standalone Binaries (Linux & Windows Cross-Compilation)
runs-on: logar
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Verify Builder Runner Environment & Dependencies
run: |
echo "=== LOGAR BUILD RUNNER ENVIRONMENT ==="
uname -a
python3 --version
which makensis || echo "[!] Warning: makensis not found in PATH"
python3 -m pip install -r compilation/requirements.txt --no-warn-script-location --break-system-packages 2>/dev/null || python3 -m pip install -r compilation/requirements.txt --no-warn-script-location || true
python3 -c "import PyInstaller, distlib, pgpy, fastapi, uvicorn, websockets, sqlalchemy; print('[+] All core build & packaging dependencies verified.')"
- name: Compile Standalone Binaries (Linux & Windows)
run: |
python3 compilation/package_dist.py --target all
- name: Publish Unified Release Assets
env:
GITEA_TOKEN: ${{ secrets.TAG_TOKEN || github.token }}
GITEA_SERVER_URL: ${{ github.server_url }}
GITEA_REPOSITORY: ${{ github.repository }}
GITEA_REF_NAME: ${{ inputs.tag || github.event.release.tag_name || github.ref_name }}
run: |
python3 compilation/upload_release.py --skip-build