ci(pages): skip deployment step on fork repositories

This commit is contained in:
adrian adewunmi 2026-07-24 15:00:00 +01:00
parent beccfdbc57
commit 630a965b50
1 changed files with 3 additions and 2 deletions

View File

@ -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