Skip to content

Merge branch 'main' of https://github.com/CAMS-Software-Design-and-De… #21

Merge branch 'main' of https://github.com/CAMS-Software-Design-and-De…

Merge branch 'main' of https://github.com/CAMS-Software-Design-and-De… #21

Workflow file for this run

name: Sphinx Build and Deploy
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- uses: actions/setup-python@v3
- name: Install python dependencies
run: |
pip install sphinx sphinx_rtd_theme myst_parser
- name: Build Sphinx for GitHub Pages
run: |
sphinx-build ./ ../_build
- name: Create .nojekyll
run: |
touch ../_build/.nojekyll
- name: Copy build files to gh-pages branch
run: |
git fetch origin
git checkout -b gh-pages origin/gh-pages
git rm -rf *
cp -r ../_build/* ./
- name: Commit and push changes
run: |
git config --global user.name "CAMS SDD"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git add ./.
git commit -m "Autobuild latest version"
git push