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