Skip to content

Commit

Permalink
test: 测试 jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyunchao committed Nov 2, 2024
1 parent 612a1c6 commit ca1aea9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- master # 或你的主分支

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build project
run: |
# 在这里添加构建项目的命令,比如 npm run build
pnpm run docs:build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.vitepress/dist
publish_branch: master # 或者是 gh-pages
publish_repo: https://github.com/Zyunchao/zyunchao.github.io.git

0 comments on commit ca1aea9

Please sign in to comment.