diff options
| author | Fangcat_Dev <fangcat_dev@outlook.com> | 2026-10-17 11:56:52 +0000 |
|---|---|---|
| committer | Fangcat_Dev <fangcat_dev@outlook.com> | 2026-10-17 11:56:52 +0000 |
| commit | fa61b9f49a79bd03c11eaff5857af48dd89edc67 (patch) | |
| tree | ebcd21970220c5a49b0b4a596bf10604e01cad9c /.forgejo/workflows/mkdocs-deploy.yml | |
| parent | docs(fix): update links (diff) | |
feat: migrate to vitepress
Diffstat (limited to '.forgejo/workflows/mkdocs-deploy.yml')
| -rw-r--r-- | .forgejo/workflows/mkdocs-deploy.yml | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/.forgejo/workflows/mkdocs-deploy.yml b/.forgejo/workflows/mkdocs-deploy.yml index 410466e..12fe25d 100644 --- a/.forgejo/workflows/mkdocs-deploy.yml +++ b/.forgejo/workflows/mkdocs-deploy.yml @@ -6,19 +6,9 @@ on: push: branches: - main - paths: - - 'docs/**' - - 'mkdocs.yml' - - 'overrides/**' - - '.forgejo/workflows/mkdocs-deploy.yml' pull_request: branches: - main - paths: - - 'docs/**' - - 'mkdocs.yml' - - 'overrides/**' - - '.forgejo/workflows/mkdocs-deploy.yml' workflow_dispatch: jobs: @@ -31,23 +21,18 @@ jobs: with: fetch-depth: 0 - - name: Install MkDocs dependencies - run: | - python -m pip install --upgrade pip - - pip install --index-url https://mirror.nju.edu.cn/pypi/web/simple \ - --extra-index-url https://mirrors.ustc.edu.cn/pypi/simple \ - -r requirements.txt + - name: Install Node.js dependencies + run: npm install - name: Build MkDocs site - run: mkdocs build --strict + run: npm run build - name: Deploy to target repository if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' env: DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} run: | - cd site + cd .vitepress/dist echo "hb.linuxcabin.top" > CNAME git init git config user.name "Fangcat_Dev" |
