Skip to content

Commit

Permalink
move the if condition at top
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Aug 14, 2024
1 parent b71f5d1 commit a2282ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:
path: _site

deploy:
if: >
github.ref == 'refs/heads/main'
&& github.repository == 'UCL/rsd-engineeringcourse'
needs: build
permissions:
pages: write
Expand All @@ -65,8 +68,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
if: >
github.ref == 'refs/heads/main'
&& github.repository == 'UCL/rsd-engineeringcourse'
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit a2282ec

Please sign in to comment.