mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-30 16:24:06 -06:00
updated deployment file
This commit is contained in:
parent
575a2f3eaa
commit
4abbf0b2ed
20
.github/workflows/deploy.yml
vendored
20
.github/workflows/deploy.yml
vendored
@ -2,8 +2,14 @@ name: Deploy Quartz site to GitHub Pages
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
repository_dispatch:
|
||||||
- v4
|
types: [build]
|
||||||
|
workflow_dispatch:
|
||||||
|
workflow_run:
|
||||||
|
workflows:
|
||||||
|
- build
|
||||||
|
- deploy
|
||||||
|
branches: [v4]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@ -20,10 +26,20 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
token: ${{ secrets.gh_action_token_PAT }}
|
||||||
fetch-depth: 0 # Fetch all history for git info
|
fetch-depth: 0 # Fetch all history for git info
|
||||||
|
submodules: 'recursive'
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
|
- name: Fetch submodules
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
git submodule update --init --recursive --checkout -f --remote -- "content"
|
||||||
|
git config --global user.name "GitHub Action"
|
||||||
|
git config --global user.email "noreply@github.com"
|
||||||
|
git commit -am "chore (update): fetch submodule"
|
||||||
|
git push
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Build Quartz
|
- name: Build Quartz
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user