diff --git a/.github/workflows/deploy-doc.yml b/.github/workflows/deploy-doc.yml index 7a8341a9d..26486b62e 100644 --- a/.github/workflows/deploy-doc.yml +++ b/.github/workflows/deploy-doc.yml @@ -32,6 +32,7 @@ jobs: touch docs/django-dsfr/.nojekyll - name: 🚀 Deploy Github Pages uses: JamesIves/github-pages-deploy-action@3.7.1 + if: github.repository == 'numerique-gouv/django-dsfr' && secrets.GITHUB_TOKEN != '' && github.ref == 'refs/heads/main' with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH: gh-pages # <- Branche sur laquelle seront commités les fichiers