From a2282ecfbc525310fc912dc664c687238ff6d025 Mon Sep 17 00:00:00 2001 From: Saransh Chopra Date: Wed, 14 Aug 2024 16:11:23 +0100 Subject: [PATCH] move the if condition at top --- .github/workflows/build_site.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_site.yml b/.github/workflows/build_site.yml index 78b08046..e04b183e 100644 --- a/.github/workflows/build_site.yml +++ b/.github/workflows/build_site.yml @@ -55,6 +55,9 @@ jobs: path: _site deploy: + if: > + github.ref == 'refs/heads/main' + && github.repository == 'UCL/rsd-engineeringcourse' needs: build permissions: pages: write @@ -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