From ddf065e7d67243c5e0925fb76f5bd8c89afa4d5b Mon Sep 17 00:00:00 2001 From: Liudon Date: Fri, 27 Sep 2024 13:41:13 +0800 Subject: [PATCH] fix --- .github/workflows/gh-pages.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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