mirror of
https://github.com/IT4Change/IT4C.dev.git
synced 2025-12-13 09:25:49 +00:00
update webhook deploy.sh & ignore hooks.json
This commit is contained in:
parent
2d54fb24ca
commit
db34565455
4
.github/webhooks/deploy.sh
vendored
4
.github/webhooks/deploy.sh
vendored
@ -6,6 +6,10 @@ SCRIPT_DIR=$(dirname $SCRIPT_PATH)
|
|||||||
PROJECT_ROOT=$SCRIPT_DIR/../..
|
PROJECT_ROOT=$SCRIPT_DIR/../..
|
||||||
DEPLOY_DIR=$i
|
DEPLOY_DIR=$i
|
||||||
BUILD_DIR=$PROJECT_ROOT/docs/.vuepress/dist
|
BUILD_DIR=$PROJECT_ROOT/docs/.vuepress/dist
|
||||||
|
|
||||||
|
# assuming you are already on the right branch
|
||||||
|
git pull -ff
|
||||||
|
|
||||||
GIT_REF=$(git rev-parse --short HEAD)
|
GIT_REF=$(git rev-parse --short HEAD)
|
||||||
DEPLOY_DIR_REF=$1-$GIT_REF
|
DEPLOY_DIR_REF=$1-$GIT_REF
|
||||||
|
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
/node_modules/
|
/node_modules/
|
||||||
/docs/.vuepress/dist/
|
/docs/.vuepress/dist/
|
||||||
|
/.github/webhooks/hooks.json
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user