-
Notifications
You must be signed in to change notification settings - Fork 55
38 lines (35 loc) · 922 Bytes
/
github-pages.yml
File metadata and controls
38 lines (35 loc) · 922 Bytes
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
name: "Build and deploy the Greenbone Documentation"
on:
workflow_dispatch:
push:
branches: [main]
jobs:
build-docs:
name: Build Documentation
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install uv
uses: greenbone/actions/uv@v3
- name: Build docs
run: uv run sphinx-build -b html src _build
- name: Upload Documentation Artifact
uses: actions/upload-artifact@v7
with:
name: greenbone-community-docs
path: _build/
deploy-docs:
needs: build-docs
name: Build Documentation
permissions:
contents: write
id-token: write
pages: write
uses: ./.github/workflows/deployment.yml
with:
doc_root: latest
artifact_name: greenbone-community-docs