mirror of
https://github.com/jellyfin/jellyfin.org.git
synced 2026-09-03 04:10:04 +03:00
Merge pull request #1581 from BotBlake/fix_ci_repo_checks
Prevent deployment CI from running on forks
This commit is contained in:
@@ -26,7 +26,9 @@ jobs:
|
||||
with:
|
||||
cache: npm
|
||||
node-version: 20
|
||||
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
|
||||
- name: Configure Pages
|
||||
if: github.event_name == 'push' && github.repository == 'jellyfin/jellyfin.org'
|
||||
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
|
||||
- name: Run build
|
||||
run: |
|
||||
npm ci --no-audit
|
||||
@@ -37,13 +39,13 @@ jobs:
|
||||
name: jellyfin-org__build
|
||||
path: build
|
||||
- name: Upload pages artifact
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name == 'push' && github.repository == 'jellyfin/jellyfin.org'
|
||||
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
|
||||
with:
|
||||
path: build
|
||||
|
||||
deploy:
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name == 'push' && github.repository == 'jellyfin/jellyfin.org'
|
||||
name: Deploy to GitHub Pages
|
||||
concurrency: build-deploy-pages
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user