Skip to content

Commit

Permalink
feat: update build command for release branches
Browse files Browse the repository at this point in the history
  • Loading branch information
devindford committed Nov 2, 2023
1 parent 36035cf commit e725f1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ applications:
- hugo version
build:
commands:
- if [ ! -n "${AWS_PULL_REQUEST_ID}" ]; then DEPLOY_PRIME_URL="https://$(echo "${AWS_BRANCH}" | sed 's/[./]/-/g').d1a7j77663uxsc.amplifyapp.com"; else DEPLOY_PRIME_URL="https://pr-${AWS_PULL_REQUEST_ID}.d1a7j77663uxsc.amplifyapp.com"; fi
- DEPLOY_PRIME_URL=$(echo "https://$(echo "${AWS_BRANCH}" | sed 's/[./]/-/g').d1a7j77663uxsc.amplifyapp.com" )
- if [[ "${AWS_BRANCH}" =~ ^v0[-.][0-9]+([-.]?[0-9]+)?$ ]]; then DEPLOY_COMMAND="ci-production-build"; fi
- make $DEPLOY_COMMAND
artifacts:
baseDirectory: public
Expand Down

0 comments on commit e725f1f

Please sign in to comment.