-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add var for /*, remove from path in git add
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |