mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
add example to build for windows
add example script which will build a windows executable and also upload it to action artifacts
This commit is contained in:
parent
8ffad233a0
commit
1b4d6c711f
1 changed files with 22 additions and 0 deletions
22
README.md
22
README.md
|
@ -71,6 +71,28 @@ jobs:
|
||||||
- run: flutter build web
|
- 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:
|
Use latest release for particular channel:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
Loading…
Add table
Reference in a new issue