Files
LOGAR/.gitea/workflows/release.yml
T
2026-09-03 21:53:16 +02:00

36 lines
1.0 KiB
YAML

name: Release Binaries
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Python and Dependencies
run: |
if command -v apt-get >/dev/null 2>&1; then
apt-get update -y
apt-get install -y python3 python3-pip python3-venv binutils zip
fi
python3 -m pip install --upgrade pip --break-system-packages || python3 -m pip install --upgrade pip || true
pip3 install pyinstaller -r requirements.txt --break-system-packages || pip3 install pyinstaller -r requirements.txt
- name: Compile Standalone Binaries
run: |
python3 package_dist.py
- name: Publish Release
uses: https://gitea.com/actions/gitea-release-action@v1
with:
files: |
dist/*
api_key: ${{ secrets.TAG_TOKEN || github.token }}
token: ${{ secrets.TAG_TOKEN || github.token }}