Skip to content

Commit

Permalink
ci: Added documentation build to PR
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethEnevoldsen committed Dec 22, 2022
1 parent 51139c8 commit e4518ad
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@

name: Documentation

on:
push:
branches:
- main
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install sphinx furo sphinx-copybutton sphinxext-opengraph
- name: Build and Commit
uses: sphinx-notes/pages@master
with:
documentation_path: docs
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.SPHINX_DOCUMENTATION }}
branch: gh-pages
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build and Commit
uses: sphinx-notes/[email protected]
with:
documentation_path: docs
- name: Push changes
if: ${{ github.event_name == 'push' }}
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.SPHINX_DOCUMENTATION }}
branch: gh-pages

0 comments on commit e4518ad

Please sign in to comment.