1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #5894 from thornbill/migrate-cf-pages-action

This commit is contained in:
Bill Thornton 2024-08-08 08:33:53 -04:00 committed by GitHub
commit 866ac5010b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -84,19 +84,15 @@ jobs:
- name: Publish to Cloudflare - name: Publish to Cloudflare
id: cf id: cf
uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca # v1.5.0 uses: cloudflare/wrangler-action@f84a562284fc78278ff9052435d9526f9c718361 # v3.7.0
with: with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: jellyfin-web command: pages deploy dist --project-name=jellyfin-web --branch=${{
branch: | github.event.pull_request.head.repo.full_name == github.repository
${{ && (github.event.pull_request.head.ref || github.ref_name)
github.event.pull_request.head.repo.full_name == github.repository || format('{0}/{1}', github.event.pull_request.head.repo.full_name, github.event.pull_request.head.ref)
&& (github.event.pull_request.head.ref || github.ref_name) }} --commit-hash=${{ github.event.pull_request.head.sha || github.sha }}
|| format('{0}/{1}', github.event.pull_request.head.repo.full_name, github.event.pull_request.head.ref)
}}
directory: dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Update status comment (Success) - name: Update status comment (Success)
if: ${{ github.event_name == 'pull_request_target' && success() }} if: ${{ github.event_name == 'pull_request_target' && success() }}
@ -109,7 +105,7 @@ jobs:
| **Latest commit** | <code>${{ github.event.pull_request.head.sha || github.sha }}</code> | | **Latest commit** | <code>${{ github.event.pull_request.head.sha || github.sha }}</code> |
|-------------------|:-:| |-------------------|:-:|
| **Status** | ✅ Deployed! | | **Status** | ✅ Deployed! |
| **Preview URL** | ${{ steps.cf.outputs.url != '' && steps.cf.outputs.url || 'Not available' }} | | **Preview URL** | ${{ steps.cf.outputs.deployment-url != '' && steps.cf.outputs.deployment-url || 'Not available' }} |
| **Type** | 🔀 Preview | | **Type** | 🔀 Preview |
pr_number: ${{ github.event.pull_request.number }} pr_number: ${{ github.event.pull_request.number }}
comment_tag: CFPages-deployment comment_tag: CFPages-deployment