ci: add Gitea Actions workflow for Windows EXE build & release

This commit is contained in:
joel
2026-06-11 16:02:23 +02:00
parent a8d9a5ec1a
commit bb912d66a4
3 changed files with 135 additions and 1 deletions
+67
View File
@@ -0,0 +1,67 @@
name: Build Windows EXE & Release
on:
push:
tags:
- 'v*' # Wird ausgelöst wenn du z.B. "v1.0.0" pushst
jobs:
build-windows:
runs-on: windows-latest # Benötigt einen Windows-Runner!
steps:
- name: Code auschecken
uses: actions/checkout@v4
- name: Python 3.11 installieren
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: FFmpeg installieren (via Chocolatey)
run: |
choco install ffmpeg -y
shell: powershell
- name: Python-Abhängigkeiten installieren
run: |
pip install --upgrade pip
pip install mutagen pydub pyinstaller
- name: .exe bauen mit PyInstaller
run: |
pyinstaller `
--onefile `
--windowed `
--icon=icon.ico `
--name="fcco-Converter" `
--add-data="icon.ico;." `
main.py
shell: powershell
- name: Release-Archiv erstellen (ZIP)
run: |
Compress-Archive -Path dist\fcco-Converter.exe -DestinationPath dist\fcco-Converter-${{ gitea.ref_name }}-windows.zip
shell: powershell
- name: Gitea Release erstellen & EXE hochladen
uses: https://gitea.com/actions/gitea-release-action@main
with:
token: ${{ secrets.RELEASE_TOKEN }}
tag_name: ${{ gitea.ref_name }}
release_name: "fcco-Converter ${{ gitea.ref_name }}"
body: |
## fcco-Converter ${{ gitea.ref_name }}
### Download
- **fcco-Converter-${{ gitea.ref_name }}-windows.zip** Windows Standalone (.exe)
### Voraussetzungen
- FFmpeg muss auf dem System installiert sein (oder im PATH liegen)
- Beim ersten Start: `settings.json` wird automatisch erstellt
### Installation
1. ZIP entpacken
2. `fcco-Converter.exe` starten
files: |
dist/fcco-Converter-${{ gitea.ref_name }}-windows.zip