separate v5 pipeline

This commit is contained in:
Jacky Zhao 2026-03-14 09:47:36 -07:00
parent 33dc50267b
commit a6b83da067
2 changed files with 53 additions and 2 deletions

View File

@ -33,6 +33,5 @@ jobs:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: quartz
deploymentName: v5 Branch Preview
branch: v5
deploymentName: Branch Preview
directory: ${{ steps.preview-build-artifact.outputs.download-path }}

52
.github/workflows/deploy-v5.yaml vendored Normal file
View File

@ -0,0 +1,52 @@
name: Deploy v5 Preview
on:
push:
branches:
- v5
workflow_dispatch:
permissions:
contents: read
jobs:
deploy-v5:
if: ${{ github.repository == 'jackyzha0/quartz' }}
runs-on: ubuntu-latest
name: Deploy v5 to Cloudflare Pages
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 22
- name: Cache dependencies
uses: actions/cache@v5
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- name: Check types and style
run: npm run check
- name: Build Quartz
run: npx quartz build -d docs -v
- name: Deploy to Cloudflare Pages
uses: AdrianGonz97/refined-cf-pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: quartz
deploymentName: v5 Branch Preview
branch: v5
directory: public