travis: Fork main to prod-beta
Let the prod-beta branch instead of the main branch push to the prod-beta branch in the -build repository.
This commit is contained in:
parent
f268441d41
commit
c6c616a9dc
1 changed files with 6 additions and 7 deletions
|
|
@ -4,7 +4,7 @@ set -x
|
|||
|
||||
if [ "${TRAVIS_BRANCH}" = "main" ]
|
||||
then
|
||||
for env in ci qa stage prod
|
||||
for env in ci qa stage
|
||||
do
|
||||
echo "PUSHING ${env}-beta"
|
||||
rm -rf ./dist/.git
|
||||
|
|
@ -23,9 +23,8 @@ then
|
|||
done
|
||||
fi
|
||||
|
||||
# Enable this once we fork prod from stage
|
||||
# if [[ "${TRAVIS_BRANCH}" = "prod-beta" || "${TRAVIS_BRANCH}" = "prod-stable" ]]; then
|
||||
# echo "PUSHING ${TRAVIS_BRANCH}"
|
||||
# rm -rf ./build/.git
|
||||
# .travis/release.sh "${TRAVIS_BRANCH}"
|
||||
# fi
|
||||
if [[ "${TRAVIS_BRANCH}" = "prod-beta" || "${TRAVIS_BRANCH}" = "prod-stable" ]]; then
|
||||
echo "PUSHING ${TRAVIS_BRANCH}"
|
||||
rm -rf ./build/.git
|
||||
.travis/release.sh "${TRAVIS_BRANCH}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue