source: CIVL/.github/workflows/docs.yml@ 6b26bbb

1.23 2.0 main
Last change on this file since 6b26bbb was 6b26bbb, checked in by Youngjun Lee <youngjunlee7@…>, 3 weeks ago

Add mkdocs workflow

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[6b26bbb]1name: docs
2
3on:
4 push:
5 branches: [md-docs]
6 pull_request:
7 workflow_dispatch:
8
9permissions:
10 contents: read
11 pages: write
12 id-token: write
13
14concurrency:
15 group: github-pages
16 cancel-in-progress: false
17
18jobs:
19 build:
20 runs-on: ubuntu-latest
21
22 steps:
23 - uses: actions/checkout@v4
24
25 - uses: actions/setup-python@v5
26 with:
27 python-version: "3.x"
28
29 - name: Install docs dependencies
30 run: |
31 python -m pip install --upgrade pip
32 python -m pip install -r docs/requirements.txt
33
34 - name: Build documentation
35 run: python -m mkdocs build --strict --config-file mkdocs.yaml
36
37 - name: Upload Pages artifact
38 uses: actions/upload-pages-artifact@v3
39 with:
40 path: site
41
42 deploy:
43 if: github.event_name == 'push'
44 needs: build
45 runs-on: ubuntu-latest
46
47 environment:
48 name: github-pages
49 url: ${{ steps.deployment.outputs.page_url }}
50
51 steps:
52 - name: Deploy to GitHub Pages
53 id: deployment
54 uses: actions/deploy-pages@v4
Note: See TracBrowser for help on using the repository browser.