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