diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 4538ee231..6b37ae45f 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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 }}