mirror of
https://github.com/storytold/artcraft.git
synced 2026-10-31 15:37:49 +00:00
Netlify publish scripts for powerstream branches
This commit is contained in:
1 parent
0476209973
commit
99ca3d3282
3 files changed
+63
No files matched your search
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
MASTER_BRANCH='master'
|
||||
PRODUCTION_BRANCH='production-powerstream'
|
||||
|
||||
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
|
||||
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
MASTER_BRANCH='master'
|
||||
PRODUCTION_BRANCH='production-powerstream-dash'
|
||||
|
||||
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
|
||||
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
MASTER_BRANCH='master'
|
||||
PRODUCTION_BRANCH='production-powerstream-obs'
|
||||
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user