diff --git a/.github/workflows/build-and-deploy-to-playstore.yml b/.github/workflows/build-and-deploy-to-playstore.yml index f0ec19e..56d0669 100644 --- a/.github/workflows/build-and-deploy-to-playstore.yml +++ b/.github/workflows/build-and-deploy-to-playstore.yml @@ -10,38 +10,38 @@ jobs: build: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-java@v1 - with: - java-version: '12.x' - - - name: Cache Flutter dependencies - uses: actions/cache@v2 - with: - path: ~/.pub-cache - key: ${{ runner.os }}-pub-cache-${{ hashFiles('**/pubspec.lock') }} - restore-keys: ${{ runner.os }}-pub-cache- - - - uses: subosito/flutter-action@v1.5.3 - with: - channel: 'stable' - - - name: Install dependencies - run: flutter pub get - - - name: Build release app bundle - run: flutter build appbundle --release - - - name: Authenticate with Google Play Console - uses: google-github-actions/setup-gcloud@master - with: - project_id: my-project-id - service_account_key: ${{ secrets.PLAY_STORE_AUTH_TOKEN }} - - name: Upload APK to Google Play Console - uses: google-github-actions/upload-google-play@master - with: - release_files: "build/app/outputs/bundle/release/app-release.aab" - track: "production" - package_name: "com.ibhavikmakwana.flutterplayground" - service_account_key: ${{ secrets.PLAY_STORE_AUTH_TOKEN }} \ No newline at end of file + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-java@v1 + with: + java-version: '12.x' + + - name: Cache Flutter dependencies + uses: actions/cache@v2 + with: + path: ~/.pub-cache + key: ${{ runner.os }}-pub-cache-${{ hashFiles('**/pubspec.lock') }} + restore-keys: ${{ runner.os }}-pub-cache- + + - uses: subosito/flutter-action@v1.5.3 + with: + channel: 'stable' + + - name: Install dependencies + run: flutter pub get + + - name: Build release app bundle + run: flutter build appbundle --release + + - name: Authenticate with Google Play Console + uses: google-github-actions/setup-gcloud@master + with: + project_id: my-project-id + service_account_key: ${{ secrets.PLAY_STORE_AUTH_TOKEN }} + - name: Upload APK to Google Play Console + uses: google-github-actions/upload-google-play@master + with: + release_files: "build/app/outputs/bundle/release/app-release.aab" + track: "production" + package_name: "com.ibhavikmakwana.flutterplayground" + service_account_key: ${{ secrets.PLAY_STORE_AUTH_TOKEN }} \ No newline at end of file