mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-21 21:45:42 -05:00
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:
parent
f99d54ea42
commit
d37f605bbc
14
.github/workflows/build-preview.yaml
vendored
14
.github/workflows/build-preview.yaml
vendored
@ -2,6 +2,8 @@ name: Build Preview Deployment
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- v5
|
||||||
types: [opened, synchronize]
|
types: [opened, synchronize]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@ -28,10 +30,18 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ 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
|
- run: npm ci
|
||||||
|
|
||||||
- name: Restore Quartz plugins
|
- name: Install Quartz plugins
|
||||||
run: npx quartz plugin restore
|
run: npx quartz plugin install
|
||||||
|
|
||||||
- name: Check types and style
|
- name: Check types and style
|
||||||
run: npm run check
|
run: npm run check
|
||||||
|
|||||||
18
.github/workflows/ci.yaml
vendored
18
.github/workflows/ci.yaml
vendored
@ -3,10 +3,10 @@ name: Build and Test
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- v4
|
- v5
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- v4
|
- v5
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -36,10 +36,18 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ 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
|
- run: npm ci
|
||||||
|
|
||||||
- name: Restore Quartz plugins
|
- name: Install Quartz plugins
|
||||||
run: npx quartz plugin restore
|
run: npx quartz plugin install
|
||||||
|
|
||||||
- name: Check types and style
|
- name: Check types and style
|
||||||
run: npm run check
|
run: npm run check
|
||||||
@ -51,7 +59,7 @@ jobs:
|
|||||||
run: npx quartz build --bundleInfo -d docs
|
run: npx quartz build --bundleInfo -d docs
|
||||||
|
|
||||||
publish-tag:
|
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
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|||||||
4
.github/workflows/docker-build-push.yaml
vendored
4
.github/workflows/docker-build-push.yaml
vendored
@ -2,10 +2,10 @@ name: Docker build & push image
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [v4]
|
branches: [v5]
|
||||||
tags: ["v*"]
|
tags: ["v*"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [v4]
|
branches: [v5]
|
||||||
paths:
|
paths:
|
||||||
- .github/workflows/docker-build-push.yaml
|
- .github/workflows/docker-build-push.yaml
|
||||||
- quartz/**
|
- quartz/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user