fix(ci): Deploy condition

This commit is contained in:
Jalil David Salamé Messina 2024-02-18 17:03:06 +01:00
parent 465268c194
commit 38114adbcf
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -45,7 +45,7 @@ jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build-documentation needs: build-documentation
if: ${{ github.event_name == 'push' && github.ref == 'main' }} # only run triggered by a push on main if: ${{ github.ref == 'main' }} # only run on main branch
permissions: permissions:
pages: write pages: write
id-token: write id-token: write