forked from KSP-KOS/KOS
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.02 KB
/
Copy pathdeploy-docs.yml
File metadata and controls
49 lines (43 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
on:
workflow_dispatch:
inputs:
version-string:
type: string
required: true
workflow_call:
inputs:
version-string:
type: string
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: install dependencies
id: deps
run: |
pip install sphinx
pip install sphinx_rtd_theme
- name: build docs
id: build
run: |
cd doc
make clean
make html SPHINXOPTS='-D version=${{ inputs.version-string }} -D release=${{ inputs.version-string }}'
- uses: actions/upload-pages-artifact@v5
with:
path: doc/gh-pages
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5.0.0