Don't create env on non-main

This commit is contained in:
Toby Jaffey 2025-12-14 13:02:14 +00:00
parent 3242393cb5
commit 056c7b608f

View file

@ -20,6 +20,7 @@ jobs:
matrix:
os: [ubuntu-latest]
environment:
if: github.ref == 'refs/heads/main'
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ${{matrix.os}}