mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Add gh-pages release script
This commit is contained in:
parent
d702e4b8a2
commit
39e685dc0e
1 changed files with 22 additions and 0 deletions
22
gh.release.sh
Executable file
22
gh.release.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#! /bin/bash
|
||||
|
||||
CURRENT_TIMESTAMP=`date +"%Y-%m-%d-%H%M%S"`
|
||||
|
||||
GH_REPO_NAME='ifplayer'
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue