ci(pages): skip deployment step on fork repositories
This commit is contained in:
parent
beccfdbc57
commit
630a965b50
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue