diff --git a/.github/workflows/publish-to-git-pages.yml b/.github/workflows/publish-to-git-pages.yml index 73aeccd..f5527b3 100644 --- a/.github/workflows/publish-to-git-pages.yml +++ b/.github/workflows/publish-to-git-pages.yml @@ -13,7 +13,10 @@ jobs: - uses: actions/setup-python@v3 - name: Install dependencies run: | - pip install sphinx sphinx_rtd_theme myst_parser + pip install sphinx sphinx_rtd_theme + - name: Sphnix autoapi + run: | + sphinx-apidoc --implicit-namespaces -o docs/source . snowflake - name: Sphinx build run: | sphinx-build -E -a -c docs/source/_static -b html docs/source docs/build @@ -22,6 +25,6 @@ jobs: if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: publish_branch: gh-pages - github_token: ${{ secrets.PUBLISH_DOCS }} + github_token: ${{ secrets.GITHUB-TOCKEN }} publish_dir: docs/build/html/index.html force_orphan: true