Files
PiliPlus/.github/workflows/win.yml
dom d6bff33d29 win (#1240)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-09-12 18:12:21 +08:00

49 lines
1.1 KiB
YAML

name: Build for Windows
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
paths-ignore:
- '**.md'
workflow_dispatch:
inputs:
branch:
required: false
default: 'main'
jobs:
build-windows-app:
name: Release Windows
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version-file: pubspec.yaml
- name: Build Windows
run: |
dart lib/scripts/build.dart
flutter build windows --release
- name: Prepare Upload
run: |
mkdir -p Release/PiliPlus-Win
mv build/windows/x64/runner/Release/* Release/PiliPlus-Win/
- name: Upload windows release
uses: actions/upload-artifact@v4
with:
name: windows-release
path: Release