Skip to content

Commit c71c55d

Browse files
Test build workflow
1 parent 998d016 commit c71c55d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build_docs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Sphinx Build and Deploy
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
docs:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
- name: Install dependencies
19+
run: |
20+
pip install sphinx sphinx_rtd_theme myst_parser
21+
- name: Build Sphinx for GitHub Pages
22+
run: |
23+
sphinx-build doc ../_build
24+
- name: Create .nojekyll
25+
run: |
26+
touch ../_build/.nojekyll
27+
- name: Commit and push changes
28+
run: |
29+
git checkout gh-pages
30+
cp ../_build ./
31+
git config --global user.name "CAMS SDD"
32+
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
33+
git add ./.
34+
git commit -m "Autobuild latest version"
35+
git push

0 commit comments

Comments
 (0)