open-learning-exchange / myplanet

šŸŒ• myPlanet android app reads data from šŸŒŽ for offline use as well as it collect usage data and sends them back to the Planet.
23 stars 25 forks source link

actions: smoother playstore publishing #3706

Closed dogi closed 4 days ago

dogi commented 4 days ago
      - name: publish AAB to playstore
        id: playstore
        if: github.ref == 'refs/heads/master' && matrix.build == 'lite'
        continue-on-error: true
        uses: dogi/upload-google-play@v1.1.3
        with:
          serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
          packageName: org.ole.planet.myplanet
          releaseFiles: output/myPlanet.aab
          track: internal
          releaseName: "${{ env.ANDROID_VERSION_CODE }} (${{ env.ANDROID_VERSION_NAME }})"
          status: completed

      - name: publish AAB to playstore fallback
        if: github.ref == 'refs/heads/master' && matrix.build == 'lite' && steps.playstore.outcome == 'failure'
        uses: dogi/upload-google-play@v1.1.3
        with:
          serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
          packageName: org.ole.planet.myplanet
          releaseFiles: output/myPlanet.aab
          track: internal
          releaseName: "${{ env.ANDROID_VERSION_CODE }} (${{ env.ANDROID_VERSION_NAME }})"
          status: completed
          changesNotSentForReview: true