1.23
2.0
main
|
Last change
on this file since 9d0c04c 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
|
| Line | |
|---|
| 1 | name: docs
|
|---|
| 2 |
|
|---|
| 3 | on:
|
|---|
| 4 | push:
|
|---|
| 5 | branches: [main]
|
|---|
| 6 | paths:
|
|---|
| 7 | - 'docs/**'
|
|---|
| 8 | - 'mkdocs.yaml'
|
|---|
| 9 | - '.github/workflows/docs.yml'
|
|---|
| 10 | pull_request:
|
|---|
| 11 | paths:
|
|---|
| 12 | - 'docs/**'
|
|---|
| 13 | - 'mkdocs.yaml'
|
|---|
| 14 | - '.github/workflows/docs.yml'
|
|---|
| 15 | workflow_dispatch:
|
|---|
| 16 |
|
|---|
| 17 | concurrency:
|
|---|
| 18 | group: github-pages
|
|---|
| 19 | cancel-in-progress: false
|
|---|
| 20 |
|
|---|
| 21 | jobs:
|
|---|
| 22 | build:
|
|---|
| 23 | runs-on: ubuntu-latest
|
|---|
| 24 |
|
|---|
| 25 | steps:
|
|---|
| 26 | - uses: actions/checkout@v6
|
|---|
| 27 | - uses: actions/setup-python@v6
|
|---|
| 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:
|
|---|
| 45 | if: github.event_name == 'push' && github.repository == 'verified-software-lab/civl'
|
|---|
| 46 | needs: build
|
|---|
| 47 | runs-on: ubuntu-latest
|
|---|
| 48 |
|
|---|
| 49 | permissions:
|
|---|
| 50 | pages: write
|
|---|
| 51 | id-token: write
|
|---|
| 52 |
|
|---|
| 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
|
|---|
| 60 | uses: actions/deploy-pages@v5
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.