Skip to content

Commit 1505e72

Browse files
committed
Run deploy github action only on the main branch
1 parent 7cfe565 commit 1505e72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/website.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ jobs:
158158
url: ${{ steps.deployment.outputs.page_url }}
159159
runs-on: ubuntu-latest
160160
needs: build
161+
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'schedule'
161162
steps:
162163
- name: Deploy to GitHub Pages
163164
id: deployment

0 commit comments

Comments
 (0)