diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4c8cfcc5f..20c665e9c 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -53,12 +53,11 @@ jobs: ls -l ./ hugo --gc --minify --cleanDestinationDir - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + - name: Push + uses: peaceiris/actions-gh-pages@v4 with: - # Upload dist repository - path: './public' - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + github_token: ${{ secrets.TOKEN }} + publish_branch: master + force_orphan: true + publish_dir: ./public + cname: liudon.com \ No newline at end of file