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