Run deploy github action only on the main branch

This commit is contained in:
Louis Dispa
2025-02-17 22:37:00 +01:00
parent 7cfe565c29
commit 1505e7208e
+1
View File
@@ -158,6 +158,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'schedule'
steps:
- name: Deploy to GitHub Pages
id: deployment