Skip to content

Commit

Permalink
Add var for /*, remove from path in git add
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Jan 4, 2022
1 parent ffbf593 commit 6475b0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nodejs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ jobs:
if ${{ env.IS_PUSH_TAG }}; then
DEPLOY_DIR=./demo/stable
fi
ALL=/*
git config user.email [email protected]
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

0 comments on commit 6475b0a

Please sign in to comment.