diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000..7acdf8d --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,36 @@ +name: Perceptions Library 22a + +on: + push: + branches: + - DocumentationBranch + pull_request: + branches: + - DocumentationBranch + workflow_dispatch: + +permissions: + contents: write + +jobs: + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v3 + + - name: Install dependencies + run: | + pip install sphinx sphinx_rtd_theme myst_parser + + - name: Build documentation + run: make html + working-directory: PerceptionsLibrary22a/documentation/html + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_branch: gh-pages + publish_dir: PerceptionsLibrary22a/documentation/html/_build/html