From 18eabf564ab7b1e396bd2223ab31e1225c67ec4e Mon Sep 17 00:00:00 2001 From: Abdou Abarchi Aboubacar <57944650+AbdouAbarchiAboubacar@users.noreply.github.com> Date: Fri, 10 Mar 2023 22:23:33 +0100 Subject: [PATCH] Trying to Fix workflow bugs --- .github/workflows/firebase-hosting-merge.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index cc9257f..1fc8026 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -25,6 +25,7 @@ jobs: build_apk: name: Generate apk files + needs: [flutter_test] runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -32,7 +33,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-java@v1 with: - java-version: '18.x' + java-version: '11.x' # Setup the flutter environment. - uses: subosito/flutter-action@v2 with: @@ -43,12 +44,14 @@ jobs: - name: Build apk run: flutter build apk # Upload generated apk to the artifacts. - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@master with: name: release-apk path: build/app/outputs/apk/release/app-release.apk + build_appundle: name: Generate apk files + needs: [flutter_test] runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -56,7 +59,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-java@v1 with: - java-version: '18.x' + java-version: '11.x' # Setup the flutter environment. - uses: subosito/flutter-action@v2 with: @@ -67,9 +70,9 @@ jobs: - name: Build appbundle run: flutter build appbundle # Upload generated apk to the artifacts. - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@master with: - name: release-apk + name: release-appbundle path: build/app/outputs/bundle/release/app-release.aab build_web: