name: Release Linux Binaries on: release: types: [published, created] push: tags: - '*' - '**' workflow_dispatch: inputs: tag: description: 'Release tag (optional)' required: false jobs: release-linux: name: Build & Release Linux Binaries runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v4 - name: Install Python and Build 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 compilation/requirements.txt --break-system-packages || pip3 install pyinstaller -r compilation/requirements.txt - name: Compile Standalone Linux Binaries run: | python3 compilation/package_dist.py --target linux - name: Publish Linux Release Assets env: GITEA_TOKEN: ${{ secrets.TAG_TOKEN || github.token }} GITEA_SERVER_URL: ${{ github.server_url }} GITEA_REPOSITORY: ${{ github.repository }} GITEA_REF_NAME: ${{ github.event.release.tag_name || inputs.tag || github.ref_name }} run: | python3 compilation/upload_release.py --skip-build