Files
flux/.gitea/workflows/release.yaml
Mark M2 Macbook 4b9cbf65f9
Some checks failed
Build and Release FLUX Windows / build (push) Has been cancelled
using dep override pdfx da github
2026-05-22 11:06:19 +02:00

30 lines
1.0 KiB
YAML

name: Build and Release FLUX Windows
on:
push:
tags:
- 'v*' # Si attiva solo quando crei un tag tipo v1.0.0
jobs:
build:
runs-on: windows-native # Richiama esattamente l'etichetta del PC del collega
steps:
- name: Checkout del codice
uses: actions/checkout@v3
- name: Build Flutter Definitiva
run: flutter build windows --release
- name: Compila Installer Inno Setup
run: |
$TagVersion = "${{ gitea.ref_name }}".Substring(1)
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /DMyAppVersion=$TagVersion "win_installer.iss"
# Usa un'action standard per caricare il file su Gitea Releases
- name: Upload Release Asset
uses: https://gitea.com/actions/release-action@main
with:
files: "build/windows/installer/FLUX_Setup_x64.exe"
api_key: ${{ secrets.GITEA_TOKEN }}
- name: Pulisci Workspace
if: always() # Esegue questo step anche se la build fallisce
run: Remove-Item -Recurse -Force ./*