Skip to content
Discussion options

You must be logged in to vote

Hey @Cussa,

You need will add the execution permission to gradlew before using it.
So your script will look something like this:

      - name: Build Android release
        script: |
          LATEST_GOOGLE_PLAY_BUILD_NUMBER=$(google-play get-latest-build-number --package-name "$PACKAGE_NAME")
          if [ -z LATEST_BUILD_NUMBER ]; then
              # fallback in case no build number was found from google play. Alternatively, you can `exit 1` to fail the build
              UPDATED_BUILD_NUMBER=$BUILD_NUMBER
          else
              UPDATED_BUILD_NUMBER=$(($LATEST_GOOGLE_PLAY_BUILD_NUMBER + 1))
          fi
          chmod +x gradlew
          ./gradlew bundleRelease -PversionCode=…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Cussa
Comment options

Answer selected by Cussa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants