Skip to content

Commit

Permalink
chore: 更新ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MuYi086 committed Jun 26, 2024
1 parent fc74837 commit 952d85b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,23 @@ jobs:
# 步骤4:安装依赖
- name: Install dependencies
run: yarn install
# 步骤5:构建VitePress
# 步骤5:删除cache和dist
- name: Clean up cache and dist
run: |
rm -rf Docs/.vitepress/cache
rm -rf Docs/.vitepress/dist
# 步骤6:构建VitePress
- name: Build VitePress
run: yarn run build
# 步骤6:部署到Github Pages
# 步骤7:部署到Github Pages
# - name: Deploy to Github Pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.VITEPRESS_BLOG_TOKEN }} # 自定义的action环境变量
# publish_dir: .vitepress/dist # 指定部署目录
# publish_branch: gh-pages # 指定部署分支
# dotfiles: true # 允许使用.gitignore文件
# 步骤7: scp部署到 vps
# 步骤8: scp部署到 vps
- name: Deploy to VPS
uses: appleboy/scp-action@master
with:
Expand Down

0 comments on commit 952d85b

Please sign in to comment.