浏览代码

chore: update ci

vben 2 年之前
父节点
当前提交
31f489fa90
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 6 5
      .github/workflows/deploy.yml

+ 6 - 5
.github/workflows/deploy.yml

@@ -104,12 +104,13 @@ jobs:
           cp dist/index.html dist/404.html
 
       - name: Deploy
-        uses: peaceiris/actions-gh-pages@v3
-        with:
-          ACTIONS_DEPLOY_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}}
+        uses: peaceiris/actions-gh-pages@v2.5.0
+        env:
+          ACTIONS_DEPLOY_KEY: ${{secrets.DEPLOY_TOKEN}}
           PUBLISH_BRANCH: gh-pages
-          PUBLISH_DIR: ./dist
-          allow_empty_commit: true
+          PUBLISH_DIR: ./.vitepress/dist
+        with:
+          forceOrphan: true
 
       - name: Delete gh-pages branch
         run: |