From 742593a6ff78ad4d7f194ad3fe3d75072a8bc8ad Mon Sep 17 00:00:00 2001 From: Jamie Sykes Date: Mon, 2 Jun 2025 08:49:08 +0100 Subject: [PATCH] Fixes doc deployment branch. --- .github/workflows/build-docs.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-docs.yaml b/.github/workflows/build-docs.yaml index 6e2264e..ad62cd1 100644 --- a/.github/workflows/build-docs.yaml +++ b/.github/workflows/build-docs.yaml @@ -33,14 +33,14 @@ jobs: - name: Upload GitHub Pages artifact uses: actions/upload-pages-artifact@v3.0.1 - if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}" + if: "${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/') && endsWith(github.ref, '.x') }}" with: path: "build/docs" retention-days: 1 deploy: name: "Deploy" - if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}" + if: "${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/') && endsWith(github.ref, '.x') }}" runs-on: "ubuntu-latest" # Grant GITHUB_TOKEN the permissions required to make a Pages deployment