Skip to content

Commit bbac4fc

Browse files
Fix deployment branch condition
1 parent e8c3cf4 commit bbac4fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
url: ${{ steps.deployment.outputs.page_url }}
4949
runs-on: ubuntu-latest
5050
needs: build
51+
# Only deploy from main branch
52+
if: github.ref == 'refs/heads/main'
5153
steps:
5254
- name: Deploy to GitHub Pages
5355
id: deployment

0 commit comments

Comments
 (0)