Skip to content

测试

测试 #5

Workflow file for this run

name: Deploy knowledge_books
on:
push:
branches:
- main # 或者你使用的其他主分支名
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Debug: List files0

Check failure on line 16 in .github/workflows/deploy_books.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy_books.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
run: ls -lR "${GITHUB_WORKSPACE}/"
- name: Debug: List files1
run: ls -lR "${GITHUB_WORKSPACE}/.github/tools"
- name: Install mdBook
run: |
chmod +x "${GITHUB_WORKSPACE}/.github/tools/mdBook"
chmod +x "${GITHUB_WORKSPACE}/.github/tools/mdBook-katex"
echo "${GITHUB_WORKSPACE}/.github/tools" >> $GITHUB_PATH
- name: Verify mdbook version
run: mdbook --version
- name: Verify mdbook-katex version
run: mdbook-katex --version
- name: Build the book
working-directory: book_template
run: mdbook build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: publish_books/book_template
publish_branch: gh-pages # 你想部署的分支
cname: "yinghuochong" # 如果你使用自定义域名,可以填写