update actions

This commit is contained in:
Salvatore Giordano
2020-07-20 16:18:58 +02:00
parent d99afe7e63
commit 39551e7cda
+28
View File
@@ -44,3 +44,31 @@ jobs:
run: flutter test --coverage run: flutter test --coverage
- name: Codecov - name: Codecov
run: bash <(curl -s https://codecov.io/bash) -c -t ${{ secrets.CODECOV_TOKEN }} -f coverage/lcov.info -F flutter_tool run: bash <(curl -s https://codecov.io/bash) -c -t ${{ secrets.CODECOV_TOKEN }} -f coverage/lcov.info -F flutter_tool
build_and_deploy:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/[email protected]
with:
flutter-version: ${{ env.flutter_version }}
- run: flutter pub get
- name: Build
run: flutter build apk
- name: Upload
uses: actions/upload-artifact@master
with:
name: apk-build
path: example/build/app/outputs/bundle/release
- name: Deploy
#if: github.base_ref == 'master'
uses: wzieba/[email protected]
with:
appId: ${{secrets.FIREBASE_ANDROID_APPID}}
token: ${{secrets.FIREBASE_TOKEN}}
groups: stream-testers
file: example/build/app/outputs/apk/release/app-release.apk