diff --git a/.github/webhooks/deploy.sh b/.github/webhooks/deploy.sh index f15df0a..86b7fb2 100755 --- a/.github/webhooks/deploy.sh +++ b/.github/webhooks/deploy.sh @@ -6,6 +6,10 @@ SCRIPT_DIR=$(dirname $SCRIPT_PATH) PROJECT_ROOT=$SCRIPT_DIR/../.. DEPLOY_DIR=$i 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) DEPLOY_DIR_REF=$1-$GIT_REF diff --git a/.gitignore b/.gitignore index d8ad7d4..7d3cace 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /node_modules/ /docs/.vuepress/dist/ +/.github/webhooks/hooks.json