diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index ecc5bab..915aa2d 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -4,7 +4,17 @@ 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]*-*" + pull_request: + branches: + - main + workflow_dispatch: permissions: contents: write @@ -47,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 @@ -62,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 }}