19 lines
306 B
Bash
Executable File
19 lines
306 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
declare -r RELEASE_BRANCH="artcraft-release"
|
|
|
|
if git show-ref --verify --quiet "refs/heads/${RELEASE_BRANCH}"; then
|
|
git branch -D artcraft-release
|
|
fi
|
|
|
|
git checkout main
|
|
git pull
|
|
|
|
git checkout -b "${RELEASE_BRANCH}"
|
|
git push origin "${RELEASE_BRANCH}"
|
|
|
|
git checkout main
|
|
|