Skip to content

Commit 3440526

Browse files
committed
CI: Build online documentation
1 parent 315cb9b commit 3440526

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build Online Documentation
2+
3+
on:
4+
workflow_call:
5+
6+
# Make sure jobs cannot overlap.
7+
concurrency:
8+
group: docs-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
build:
13+
name: Build online documentation
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install dependencies
20+
shell: bash
21+
working-directory: docs
22+
run: |
23+
python -m venv ./.venv
24+
source ./.venv/bin/activate
25+
pip install -r requirements.txt
26+
27+
- name: Run the build script
28+
shell: bash
29+
working-directory: docs
30+
run: |
31+
source ./.venv/bin/activate
32+
python ./build.py --release
33+
34+
# Upload the results.
35+
36+
- name: Upload the project
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: boscaceoil-blue-docs
40+
path: "docs/out"
41+
retention-days: 14

.github/workflows/build-pull-request.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ jobs:
1313
export-project:
1414
name: Export the project for target platforms
1515
uses: ./.github/workflows/export-project.yml
16+
17+
build-docs:
18+
name: Build online documentation
19+
uses: ./.github/workflows/build-documentation.yml

.github/workflows/build-release-tagged.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ jobs:
2626
uses: ./.github/workflows/publish-project.yml
2727
with:
2828
release-version: ${{ github.ref_name }}
29+
30+
build-docs:
31+
name: Build online documentation
32+
uses: ./.github/workflows/build-documentation.yml

.github/workflows/build-unstable.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ jobs:
1515
export-project:
1616
name: Export the project for target platforms
1717
uses: ./.github/workflows/export-project.yml
18+
19+
build-docs:
20+
name: Build online documentation
21+
uses: ./.github/workflows/build-documentation.yml

0 commit comments

Comments
 (0)