Files
imajviewer/.gitea/workflows/build-windows.yml
git_alhan 139ce5a8ae
Some checks failed
Build Windows Installer / build-windows (push) Has been cancelled
Build Windows Installer / create-release (push) Has been cancelled
chore: Windows setup.exe yeniden derlendi, Gitea CI Inno Setup adimi eklendi
2026-07-27 21:05:26 +03:00

66 lines
1.7 KiB
YAML

name: Build Windows Installer
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Get dependencies
run: flutter pub get
- name: Build Windows release
run: flutter build windows --release
- name: Install Inno Setup
run: |
choco install innosetup --no-progress -y
- name: Build Inno Setup installer
shell: cmd
run: |
"C:\ProgramData\chocolatey\bin\ISCC.exe" windows\installer.iss
- name: Upload release artifacts
uses: actions/upload-artifact@v4
with:
name: imajViewer-windows
path: |
build/windows/x64/runner/Release/
dist/imajviewer_setup_*.exe
create-release:
needs: build-windows
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: imajViewer-windows
path: release-artifacts/windows
- name: Create Gitea Release
uses: nicojeske/mirror-gitea-release@v1
with:
gitea_url: https://git.softmediadesign.com
repo: git_alhan/imajviewer
tag_name: ${{ github.ref_name }}
release_name: "imajViewer ${{ github.ref_name }}"
body: "Windows installer and build artifacts"
files: release-artifacts/windows/**
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}