diff --git a/.github/workflows/hexo.yml b/.github/workflows/hexo.yml index 86e7962..380da7c 100644 --- a/.github/workflows/hexo.yml +++ b/.github/workflows/hexo.yml @@ -43,3 +43,12 @@ jobs: uses: actions/upload-pages-artifact@v3 with: path: ./public + + - name: Deploy to GitHub Pages + run: | + cd public + git init --initial-branch=main + git remote add origin https://github.com/${{ github.repository }}.git + git add . + git commit -m "Deploy to GitHub Pages" + git push --force origin main:pages \ No newline at end of file