mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
22 lines
405 B
Bash
Executable file
22 lines
405 B
Bash
Executable file
#! /bin/bash
|
|
|
|
CURRENT_TIMESTAMP=`date +"%Y-%m-%d-%H%M%S"`
|
|
|
|
GH_REPO_NAME='elseifplayer'
|
|
RELEASE_BRANCH='release'
|
|
BUILD_DIR='docs'
|
|
|
|
git checkout master
|
|
git branch -D $RELEASE_BRANCH
|
|
git checkout -b $RELEASE_BRANCH
|
|
|
|
rm -rf ./$BUILD_DIR
|
|
npm run build /$GH_REPO_NAME
|
|
|
|
git add ./$BUILD_DIR
|
|
git commit -m "release: $CURRENT_TIMESTAMP"
|
|
|
|
git push -f origin $RELEASE_BRANCH
|
|
|
|
rm -rf ./$BUILD_DIR
|
|
git checkout master
|