Skip to content

Commit

Permalink
deploy only on main branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedBasem20 committed Mar 6, 2024
1 parent 84f3796 commit 7b4e3d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,12 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: 'website'
if: github.ref == 'refs/heads/main'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
if: github.ref == 'refs/heads/main'

compare:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7b4e3d6

Please sign in to comment.