From 0b837abe4bf96b8d24c937269f356bf276b776be Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Sun, 7 Dec 2025 12:04:52 -0500 Subject: [PATCH 1/3] Enable website building for new version releases --- .github/workflows/website.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index ecc5bab..6a9169f 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -4,7 +4,13 @@ on: push: branches: - main - + tags: + # Trigger on version tags (e.g., v1.0.0) + - "v[0-9].[0-9].[0-9]*" + - "[0-9].[0-9].[0-9]*" + # Trigger on pre-release tags (e.g., v1.0.0-alpha.1) + - "v[0-9].[0-9].[0-9]*-*" + - "[0-9].[0-9].[0-9]*-*" permissions: contents: write From e0cbaceb2d8f343cb788d89a9abb4669b74aa9c9 Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Sun, 7 Dec 2025 12:06:58 -0500 Subject: [PATCH 2/3] Enable workflow dispatch --- .github/workflows/website.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 6a9169f..027e400 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -11,6 +11,10 @@ on: # Trigger on pre-release tags (e.g., v1.0.0-alpha.1) - "v[0-9].[0-9].[0-9]*-*" - "[0-9].[0-9].[0-9]*-*" + pull_request: + branches: + - main + workflow_dispatch: permissions: contents: write From ecf8a6d8547d622a70cf4412c16100131422a580 Mon Sep 17 00:00:00 2001 From: Fanwang Meng Date: Sun, 7 Dec 2025 12:09:39 -0500 Subject: [PATCH 3/3] Clean up website.yaml --- .github/workflows/website.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 027e400..915aa2d 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -57,10 +57,10 @@ jobs: git submodule update --init --recursive pip install .[docs] - - name: Install pandoc - uses: pandoc/actions/setup@v1 - - name: Run pandoc - run: pandoc --version + - name: Setup pandoc + uses: siacodelabs/setup-pandoc@v1 + with: + xelatex: true # didn't need to change anything here, but had to add sphinx.ext.githubpages # to my conf.py extensions list. that fixes the broken uploads @@ -72,7 +72,7 @@ jobs: # still need to build and set the PAT to get a rebuild on the pages job, # apart from that quite clean and nice - name: GitHub Pages Action - #if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }}