Gate Pages deploy to main to avoid env protection failure

This commit is contained in:
andrussal 2025-12-06 11:41:50 +01:00
parent b693a92237
commit b1a8d96f35

View File

@ -487,13 +487,13 @@ jobs:
- name: Check links - name: Check links
run: mdbook-linkcheck -s book run: mdbook-linkcheck -s book
- name: Upload book artifact for Pages - name: Upload book artifact for Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:
path: target/book path: target/book
deploy_book: deploy_book:
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: book needs: book
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: environment: