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

updated usage

This commit is contained in:
Alif Rachmawadi 2019-08-16 19:02:42 +07:00
parent 944fac1f62
commit 1f3ea86f20
No known key found for this signature in database
GPG key ID: 79DA63C0F3A55BB1

View file

@ -18,6 +18,39 @@ steps:
- run: flutter build apk
```
Use latest release for particular channel:
```yaml
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # or: 'dev' or 'beta'
- run: flutter pub get
- run: flutter test
- run: flutter build apk
```
Use latest release for particular version and/or channel:
```yaml
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
version: '1.7.x'
channel: 'dev' # optional
- run: flutter pub get
- run: flutter test
- run: flutter build apk
```
Matrix Testing:
```yaml