Skip to content

Commit

Permalink
Merge pull request #182 from bessagroup/gh-pages-workflow
Browse files Browse the repository at this point in the history
add gh pages push workflow
  • Loading branch information
mpvanderschelling committed Oct 7, 2023
2 parents 5e36eb5 + baad1ff commit 847d50b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/push_to_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Test with pytest (excluding abaqus tests)
run: |
python -m pytest -S abaqus
build-sphinx-documentation:
publish-sphinx-documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -51,13 +51,27 @@ jobs:
with:
python-version: "3.8"
cache: "pip" # caching pip dependencies
- name: Install all dependencies
- name: Install package dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install documentation requirements
run: |
pip install -r docs/requirements.txt
- name: Build documentation
run: |
sphinx-build -b html ./docs/source ./docs/build/html
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GHPAGES_TOKEN }}
publish_dir: docs/build/html
force_orphan: false
build-package:
strategy:
matrix:
Expand Down

0 comments on commit 847d50b

Please sign in to comment.