Merge pull request #68 from majudhu/patch-1

add example to build for windows
This commit is contained in:
Alif Rachmawadi
2021-04-26 21:47:15 +07:00
committed by GitHub

View File

@@ -67,6 +67,28 @@ steps:
- 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