From befcea80fc63b638c32884697f91a3255d1d87bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Wed, 8 May 2024 18:58:20 +0800 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bd8923cd..4802bc01 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,10 +43,11 @@ jobs: run: | hexo clean hexo generate - - name: Deploy - run: | - git config --global user.name "jkjoy" - git config --global user.email "jkjoy@live.cn" - git clone https://github.com/jkjoy/blog2.git .deploy_git - export TZ='Asia/Shanghai' hexo deploy + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + personal_token: ${{ secrets.hexo }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: ./public + commit_message: ${{ github.event.head_commit.message }}