46 lines
1.4 KiB
YAML
46 lines
1.4 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
|
|
run: |
|
|
echo "=== LOGAR BUILD RUNNER ENVIRONMENT ==="
|
|
uname -a
|
|
python3 --version
|
|
which makensis || echo "[!] Warning: makensis not found in PATH"
|
|
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
|