mirror of
https://github.com/jellyfin/jellyfin.org.git
synced 2026-09-03 04:10:04 +03:00
fix pages deployment process
This commit is contained in:
@@ -35,6 +35,14 @@ jobs:
|
||||
run-id: ${{ github.event.workflow_run.id }}
|
||||
- name: Configure Pages
|
||||
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
|
||||
- name: Create pages artifact
|
||||
run: tar --dereference --hard-dereference --directory build -cvf "$RUNNER_TEMP/artifact.tar" --exclude=.git --exclude=.github .
|
||||
- name: Upload pages artifact
|
||||
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
||||
with:
|
||||
name: github-pages
|
||||
path: ${{ runner.temp }}/artifact.tar
|
||||
retention-days: 1
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
|
||||
@@ -43,6 +51,7 @@ jobs:
|
||||
if: |
|
||||
github.event.workflow_run.conclusion == 'success' &&
|
||||
github.event.workflow_run.event == 'pull_request' &&
|
||||
github.event.workflow_run.pull_requests &&
|
||||
github.repository == 'jellyfin/jellyfin.org'
|
||||
|
||||
name: Deploy to Cloudflare Pages
|
||||
@@ -84,7 +93,7 @@ jobs:
|
||||
pages deploy build
|
||||
--project-name=jellyfin-org
|
||||
--branch=${{ (github.event.workflow_run.event != 'pull_request'
|
||||
|| github.event.workflow_run.head_repository.full_name == github.repository)
|
||||
|| github.event.workflow_run.head_repository.full_name == github.repository)
|
||||
&& github.event.workflow_run.head_branch
|
||||
|| format(
|
||||
'{0}/{1}',
|
||||
|
||||
Reference in New Issue
Block a user