-
Notifications
You must be signed in to change notification settings - Fork 408
37 lines (30 loc) · 993 Bytes
/
static.yml
File metadata and controls
37 lines (30 loc) · 993 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
name: Build and Deploy Documentation
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
# Check out the code from the repository
- name: Checkout repository
uses: actions/checkout@v6
# Set up Docker
- name: Set up Docker
uses: docker/setup-buildx-action@v3
# Build and run the Docker container to generate the documentation
- name: Build documentation using Docker
run: |
chmod +x docs/build_docs.sh
sh docs/build_docs.sh
- name: Copy CNAME to HTML Build Directory
run: cp docs/CNAME docs/build/html/CNAME
# Deploy the docs to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html # Adjust this path based on where the HTML is generated
publish_branch: gh-pages