This repository was archived by the owner on Nov 17, 2025. It is now read-only.
build: 修复路径问题 #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy MkDocs site | |
| on: | |
| push: | |
| branches: [ main ] # main 分支有变动就触发 | |
| pull_request: | |
| branches: [ main ] # PR 合并到 main 也触发 | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install mkdocs mkdocs-material | |
| - name: Deploy with mkdocs gh-deploy | |
| run: mkdocs gh-deploy --force --CNAME=ecnusc.eagle233.top | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |