From 1b4d6c711ff26c7dc92bfe7645f2a8cceb27bba7 Mon Sep 17 00:00:00 2001 From: Majudhu Date: Wed, 25 Nov 2020 14:07:49 +0500 Subject: [PATCH] add example to build for windows add example script which will build a windows executable and also upload it to action artifacts --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index b5d0de0..7c987f8 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,28 @@ jobs: - run: flutter build web ``` +Build for Windows and upload artifact: + +```yaml + windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: '12.x' + - uses: subosito/flutter-action@v1 + with: + channel: dev + - run: flutter config --enable-windows-desktop + - run: flutter create . + - run: flutter build windows + - uses: actions/upload-artifact@master + with: + name: windows + path: build\windows\runner\Release +``` + Use latest release for particular channel: ```yaml