From 0aada67d1381cf2c524f60c11f33416cc42e29a6 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 7 May 2024 18:33:30 -0700 Subject: [PATCH] simplify production deploy scripts --- ...uction_fakeyou.sh => publish_production.sh | 0 publish_production_storyteller.sh | 21 ------------------- publish_production_trumped.sh | 21 ------------------- 3 files changed, 42 deletions(-) rename publish_production_fakeyou.sh => publish_production.sh (100%) delete mode 100755 publish_production_storyteller.sh delete mode 100755 publish_production_trumped.sh diff --git a/publish_production_fakeyou.sh b/publish_production.sh similarity index 100% rename from publish_production_fakeyou.sh rename to publish_production.sh diff --git a/publish_production_storyteller.sh b/publish_production_storyteller.sh deleted file mode 100755 index 129cac9e4b..0000000000 --- a/publish_production_storyteller.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -set -euxo pipefail - -MASTER_BRANCH='master' -PRODUCTION_BRANCH='production-storyteller' - -git stash -git checkout $MASTER_BRANCH -git pull - -if git show-ref --verify --quiet "refs/heads/$PRODUCTION_BRANCH"; then - echo "Deleting branch ${PRODUCTION_BRANCH}" - git branch -D $PRODUCTION_BRANCH -fi - -git checkout -b $PRODUCTION_BRANCH -git push --set-upstream origin $PRODUCTION_BRANCH - -git checkout $MASTER_BRANCH - diff --git a/publish_production_trumped.sh b/publish_production_trumped.sh deleted file mode 100755 index 8fafb8d67f..0000000000 --- a/publish_production_trumped.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -set -euxo pipefail - -MASTER_BRANCH='master' -PRODUCTION_BRANCH='production-trumped' - -git stash -git checkout $MASTER_BRANCH -git pull - -if git show-ref --verify --quiet "refs/heads/$PRODUCTION_BRANCH"; then - echo "Deleting branch ${PRODUCTION_BRANCH}" - git branch -D $PRODUCTION_BRANCH -fi - -git checkout -b $PRODUCTION_BRANCH -git push --set-upstream origin $PRODUCTION_BRANCH - -git checkout $MASTER_BRANCH -