From db34565455e2f49be2b8c913ac764b693ea5b44e Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 4 Oct 2023 18:51:08 +0200 Subject: [PATCH] update webhook deploy.sh & ignore hooks.json --- .github/webhooks/deploy.sh | 4 ++++ .gitignore | 1 + 2 files changed, 5 insertions(+) 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