From 6475b0a59f765fd0f67378a88bffb3912a9399c7 Mon Sep 17 00:00:00 2001 From: ivmartel Date: Tue, 4 Jan 2022 18:07:41 +0100 Subject: [PATCH] Add var for /*, remove from path in git add --- .github/workflows/nodejs-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs-ci.yml b/.github/workflows/nodejs-ci.yml index 55b66d3d..dab960fa 100644 --- a/.github/workflows/nodejs-ci.yml +++ b/.github/workflows/nodejs-ci.yml @@ -38,12 +38,13 @@ jobs: if ${{ env.IS_PUSH_TAG }}; then DEPLOY_DIR=./demo/stable fi + ALL=/* git config user.email github-actions@github.com git config user.name github-actions git checkout gh-pages - rm -Rf $DEPLOY_DIR'/*' + rm -Rf $DEPLOY_DIR$ALL cp -Rf ./build/* $DEPLOY_DIR - git add -A $DEPLOY_DIR'/*' + git add -A $DEPLOY_DIR git diff-index --quiet HEAD || git commit -m "CI run ${{ github.run_number }} pushed to gh-pages" git push -fq origin gh-pages