From a72c5837caf03e5fade9486a9f214163dac3f2e7 Mon Sep 17 00:00:00 2001 From: Martin Liu Date: Wed, 21 Feb 2024 09:19:46 +0800 Subject: [PATCH] gh-pages deployment --- .github/workflows/hugo.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 71b4fae..2a7b8a8 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -61,6 +61,13 @@ jobs: uses: actions/upload-pages-artifact@v3 with: path: ./public + - name: Deploy to gh-pages 🚀 # gh-pages 用于测试目的,同时也是 staging 环境 + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: public + clean: true + single-commit: true # Deployment job deploy: @@ -72,12 +79,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 - - - name: Deploy to gh-pages 🚀 # gh-pages 用于测试目的,同时也是 staging 环境 - uses: JamesIves/github-pages-deploy-action@v4 - with: - branch: gh-pages - folder: public - clean: true - single-commit: true \ No newline at end of file + uses: actions/deploy-pages@v4 \ No newline at end of file