Update GitHub Actions workflows for v5 branch and Git-based plugins

- Change branch references from v4 to v5

- Add plugin caching to speed up builds

- Use 'npx quartz plugin install' instead of 'restore'

- Update Docker workflow branch trigger
This commit is contained in:
saberzero1 2026-02-08 13:19:56 +01:00
parent f99d54ea42
commit d37f605bbc
No known key found for this signature in database
3 changed files with 27 additions and 9 deletions

View File

@ -2,6 +2,8 @@ name: Build Preview Deployment
on:
pull_request:
branches:
- v5
types: [opened, synchronize]
workflow_dispatch:
@ -28,10 +30,18 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- name: Cache Quartz plugins
uses: actions/cache@v5
with:
path: .quartz/plugins
key: ${{ runner.os }}-plugins-${{ hashFiles('quartz.lock.json') }}
restore-keys: |
${{ runner.os }}-plugins-
- run: npm ci
- name: Restore Quartz plugins
run: npx quartz plugin restore
- name: Install Quartz plugins
run: npx quartz plugin install
- name: Check types and style
run: npm run check

View File

@ -3,10 +3,10 @@ name: Build and Test
on:
pull_request:
branches:
- v4
- v5
push:
branches:
- v4
- v5
workflow_dispatch:
jobs:
@ -36,10 +36,18 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- name: Cache Quartz plugins
uses: actions/cache@v5
with:
path: .quartz/plugins
key: ${{ runner.os }}-plugins-${{ hashFiles('quartz.lock.json') }}
restore-keys: |
${{ runner.os }}-plugins-
- run: npm ci
- name: Restore Quartz plugins
run: npx quartz plugin restore
- name: Install Quartz plugins
run: npx quartz plugin install
- name: Check types and style
run: npm run check
@ -51,7 +59,7 @@ jobs:
run: npx quartz build --bundleInfo -d docs
publish-tag:
if: ${{ github.repository == 'jackyzha0/quartz' && github.ref == 'refs/heads/v4' }}
if: ${{ github.repository == 'jackyzha0/quartz' && github.ref == 'refs/heads/v5' }}
runs-on: ubuntu-latest
permissions:
contents: write

View File

@ -2,10 +2,10 @@ name: Docker build & push image
on:
push:
branches: [v4]
branches: [v5]
tags: ["v*"]
pull_request:
branches: [v4]
branches: [v5]
paths:
- .github/workflows/docker-build-push.yaml
- quartz/**