Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Milittle committed Apr 27, 2024
1 parent c5ee9f7 commit 07c6b58
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,27 @@ name: Deploy mdBook to GitHub Pages
on:
push:
branches:
- main
- main # 可根据需要调整为你使用的分支名

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- run: mdbook build

- name: Build mdBook
run: mdbook build

- name: List output files
run: ls -R book

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 07c6b58

Please sign in to comment.