From 630a965b50d139b1e0f08c10929f5c03d2e119b3 Mon Sep 17 00:00:00 2001 From: adrian adewunmi Date: Fri, 24 Jul 2026 15:00:00 +0100 Subject: [PATCH] ci(pages): skip deployment step on fork repositories --- .github/workflows/deploy-pages.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 429c9075..1ab497a0 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -16,11 +16,12 @@ concurrency: jobs: deploy: + if: github.repository == 'microsoft/AI-For-Beginners' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest - + steps: - name: Checkout uses: actions/checkout@v4 @@ -31,7 +32,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: '.' + path: "." - name: Deploy to GitHub Pages id: deployment