Skip to content

Instantly share code, notes, and snippets.

@mark-software
Created March 13, 2022 03:55
Show Gist options
  • Save mark-software/29390b599ed08b3cf0b03915084ac9a6 to your computer and use it in GitHub Desktop.
Save mark-software/29390b599ed08b3cf0b03915084ac9a6 to your computer and use it in GitHub Desktop.
Example showing how to use branch level execution on CircleCi to deploy builds
- run:
name: Upload build to App Center (if develop, release, or master)
command: |
if [ "$CIRCLE_BRANCH" == "develop" ] || [[ "$CIRCLE_BRANCH" == "release/"* ]]; then
bash ./ProjectRoot/.signing/deploy.sh dev $APP_CENTER_API_TOKEN_STAGING
fi
if [ "$CIRCLE_BRANCH" == "master" ]; then
bash ./ProjectRoot/.signing/deploy.sh release $APP_CENTER_API_TOKEN_PROD
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment