mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-02-11 16:19:11 -06:00
Update github workflow
This commit is contained in:
29
.github/workflows/upload_docs.yml
vendored
29
.github/workflows/upload_docs.yml
vendored
@@ -2,20 +2,33 @@ name: Deploy documentation to GitHub
|
||||
on:
|
||||
push:
|
||||
branches: [ "development" ]
|
||||
paths: [ "docs/**", "mkdocs.yml" ]
|
||||
paths: [ "docs/**" ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
python-version: 3.9
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install mkdocs-material mkdocs-static-i18n
|
||||
run: pnpm install
|
||||
|
||||
- name: Deploy documentation
|
||||
run: mkdocs gh-deploy --force
|
||||
- name: Build documentation
|
||||
run: pnpm vitepress build docs
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: peaceiris/actions-gh-pages@v4
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: docs/.vitepress/dist
|
||||
Reference in New Issue
Block a user