1
0
Fork 0
mirror of https://github.com/subosito/flutter-action.git synced 2024-08-16 10:19:50 +02:00

adjust windows example

This commit is contained in:
Alif Rachmawadi 2021-04-26 14:49:19 +00:00
parent d94ad8f4a5
commit 41992c08db
No known key found for this signature in database
GPG key ID: 79DA63C0F3A55BB1

View file

@ -67,26 +67,18 @@ steps:
- run: flutter build web
```
Build for Windows and upload artifact:
Build for Windows:
```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
channel: beta
- 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: