Skip to content
Discussion options

You must be logged in to vote

Hello @StarK8912,
You need to use the environment section in YAML file to define GOOGLE_PLAY_TRACK as an environment variable that persists throughout the build process. Here is an example that should suit your use-case:

    environment:
      vars:
        GOOGLE_PLAY_TRACK: "default"
    scripts:
        - name: Set up Environment data
          script: |
            if [ "$CM_BRANCH" == "master" ] ; then
              echo "Setting track to production"
              echo "GOOGLE_PLAY_TRACK=default" >> $CM_ENV
            else
              echo "Setting track to internal"
              echo "GOOGLE_PLAY_TRACK=internal" >> $CM_ENV
            fi
    publishing:
      google_play:
      …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by StarK8912
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants