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

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

Move to node24

  • Property mode set to 100644
File size: 1.0 KB
Line 
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@v6
24 - uses: actions/setup-python@v6
25 with:
26 python-version: "3.x"
27
28 - name: Install docs dependencies
29 run: |
30 python -m pip install --upgrade pip
31 python -m pip install -r docs/requirements.txt
32
33 - name: Build documentation
34 run: python -m mkdocs build --strict --config-file mkdocs.yaml
35
36 - name: Upload Pages artifact
37 uses: actions/upload-pages-artifact@v3
38 with:
39 path: site
40
41 deploy:
42 if: github.event_name == 'push'
43 needs: build
44 runs-on: ubuntu-latest
45
46 environment:
47 name: github-pages
48 url: ${{ steps.deployment.outputs.page_url }}
49
50 steps:
51 - name: Deploy to GitHub Pages
52 id: deployment
53 uses: actions/deploy-pages@v5
Note: See TracBrowser for help on using the repository browser.