From 21ee5c4d460d84c274e89dbb40d938e12b25db28 Mon Sep 17 00:00:00 2001 From: Ivan Ogasawara Date: Tue, 9 Apr 2024 20:18:50 -0400 Subject: [PATCH 1/3] docs: Fix docs CI workflow dispatch --- .github/workflows/docs.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 9d41fa6..8e43cbc 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -2,6 +2,10 @@ name: Documentation on: workflow_dispatch: + push: + branches: [main] + pull_request: + branches: [main] env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -26,7 +30,7 @@ jobs: activate-environment: arx auto-update-conda: true conda-solver: libmamba - python-version: 3.8.1 + python-version: 3.10 - name: Install deps run: | From 257a3056004d626fec15828b65177838a80ef6a0 Mon Sep 17 00:00:00 2001 From: Ivan Ogasawara Date: Tue, 9 Apr 2024 20:26:20 -0400 Subject: [PATCH 2/3] fix issues with 3.10 as integer --- .github/workflows/docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 8e43cbc..6d08617 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -30,7 +30,7 @@ jobs: activate-environment: arx auto-update-conda: true conda-solver: libmamba - python-version: 3.10 + python-version: "3.10" - name: Install deps run: | From 2fe2feafb3bcb708a79db639f5e89ea3d23a8528 Mon Sep 17 00:00:00 2001 From: Ivan Ogasawara Date: Tue, 9 Apr 2024 20:28:49 -0400 Subject: [PATCH 3/3] add condition --- .github/workflows/docs.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 6d08617..2a87817 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -41,6 +41,7 @@ jobs: run: makim --verbose docs.build - name: GitHub Pages action + if: ${{ github.event_name == 'workflow_dispatch' }} uses: peaceiris/actions-gh-pages@v3.5.9 with: github_token: ${{ secrets.GITHUB_TOKEN }}