Skip to content

Commit

Permalink
Update documentation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenwacker authored Oct 22, 2024
1 parent 101ff68 commit fe3cc8a
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,27 @@ name: Create Documentation
on:
push:
branches:
- main
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/checkout@master
python-version: 3.12 # Adjust if needed
- uses: actions/checkout@v3
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Build and Commit
uses: sphinx-notes/pages@v2
fetch-depth: 0
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install myst-parser sphinx-rtd-theme # Install myst_parser and sphinx_rtd_theme
- name: Build Documentation
run: |
sphinx-build -b html docs/ build/ -W -v
- name: Push changes
uses: ad-m/github-push-action@master
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages

0 comments on commit fe3cc8a

Please sign in to comment.