source: CIVL/.github/workflows/docs.yml@ 8ae32f6

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

Final updates for workflow before PR

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