diff --git a/.github/workflows/sphinx_to_pages.yml b/.github/workflows/sphinx_to_pages.yml index c41f761..92d02dc 100644 --- a/.github/workflows/sphinx_to_pages.yml +++ b/.github/workflows/sphinx_to_pages.yml @@ -7,31 +7,35 @@ on: jobs: build: runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + permissions: + pages: write + id-token: write steps: - name: Set up Python ๐Ÿ uses: actions/setup-python@v4 - - name: Checkout ๐Ÿ›Ž๏ธ - uses: actions/checkout@v3 - with: - fetch-depth: 0 # otherwise, you will fail to push refs to dest repo - -# - name: Run Pre-Commit Tests ๐Ÿงช -# uses: pre-commit/action@v3.0.0 - - name: Install dependencies ๐Ÿ”ง run: pip3 install sphinx sphinxawesome-theme sphinx-sitemap myst-parser +# - name: Configure GitHub Pages +# uses: actions/configure-pages@v3 + - name: Build Documentation ๐Ÿงฑ uses: sphinx-notes/pages@v3 with: - checkout: false - publish: false + checkout: true + publish: true documentation_path: "./docs/source" - - name: Push changes ๐Ÿ“Œ - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: pages - force: true + # - name: Run Pre-Commit Tests ๐Ÿงช + # uses: pre-commit/action@v3.0.0 + +# - name: Push changes ๐Ÿ“Œ +# uses: ad-m/github-push-action@master +# with: +# github_token: ${{ secrets.GITHUB_TOKEN }} +# branch: pages +# force: true