From eb293b4f15d638bdf1bd289ef6663f51beb64635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingmar=20In=CA=92o=20Splitt?= Date: Mon, 10 Jul 2023 00:38:35 +0200 Subject: [PATCH 1/3] Update sphinx_to_pages.yml --- .github/workflows/sphinx_to_pages.yml | 36 +++++++++++++++------------ 1 file changed, 20 insertions(+), 16 deletions(-) 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 From 311e482e42877f150a3aef8b0951f622e5e6213c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingmar=20In=CA=92o=20Splitt?= Date: Mon, 10 Jul 2023 00:39:34 +0200 Subject: [PATCH 2/3] Update sphinx_to_pages.yml --- .github/workflows/sphinx_to_pages.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sphinx_to_pages.yml b/.github/workflows/sphinx_to_pages.yml index 92d02dc..dc7e4c8 100644 --- a/.github/workflows/sphinx_to_pages.yml +++ b/.github/workflows/sphinx_to_pages.yml @@ -3,7 +3,9 @@ on: push: branches: - main - + pull_request: + branches: [ "main" ] + jobs: build: runs-on: ubuntu-latest From d8e7d47c87bd0a418e2508005e4f40283c4612d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingmar=20In=CA=92o=20Splitt?= Date: Mon, 10 Jul 2023 00:41:36 +0200 Subject: [PATCH 3/3] Revert "Update sphinx_to_pages.yml" This reverts commit 311e482e42877f150a3aef8b0951f622e5e6213c. --- .github/workflows/sphinx_to_pages.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/sphinx_to_pages.yml b/.github/workflows/sphinx_to_pages.yml index dc7e4c8..92d02dc 100644 --- a/.github/workflows/sphinx_to_pages.yml +++ b/.github/workflows/sphinx_to_pages.yml @@ -3,9 +3,7 @@ on: push: branches: - main - pull_request: - branches: [ "main" ] - + jobs: build: runs-on: ubuntu-latest