Update nodejs.yml

This commit is contained in:
Harvey Zack authored and GitHub committed 2024-05-26 20:38:40 +08:00
1 parent 12b1c1d347
commit e01f49821c
1 file changed
+11
+11
View File
@@ -32,3 +32,14 @@ jobs:
npm run build:all
env:
CI: true
- name: Deploy to GitHub Pages
if: success()
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add -f docs
git commit -m 'Deploy to GitHub Pages'
git push --force origin `git subtree split --prefix docs master`:gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}