diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 345d223..c67a0ab 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -36,10 +36,27 @@ jobs: pip install .[dev] - name: Generate Documentation - run: pdoc example --output-dir docs + run: pdoc example --output-dir docs --logo "https://pollen-robotics.github.io/python-template/POLLEN_LOGO.png" --logo-link "https://www.pollen-robotics.com" - name: Archive Documentation uses: actions/upload-artifact@v4 with: name: documentation path: docs/ + + publish-docs: + needs: build-docs + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + runs-on: ubuntu-22.04 + steps: + - name: Download Documentation + uses: actions/download-artifact@v4 + with: + name: documentation + path: docs/ + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs diff --git a/docs/POLLEN_LOGO.png b/docs/POLLEN_LOGO.png new file mode 100644 index 0000000..35bfa29 Binary files /dev/null and b/docs/POLLEN_LOGO.png differ