mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 23:04:05 -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:
|
||||
push:
|
||||
branches:
|
||||
- v4
|
||||
repository_dispatch:
|
||||
types: [build]
|
||||
workflow_dispatch:
|
||||
workflow_run:
|
||||
workflows:
|
||||
- build
|
||||
- deploy
|
||||
branches: [v4]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@ -20,10 +26,20 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.gh_action_token_PAT }}
|
||||
fetch-depth: 0 # Fetch all history for git info
|
||||
submodules: 'recursive'
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
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
|
||||
run: npm ci
|
||||
- name: Build Quartz
|
||||
|
||||
Loading…
Reference in New Issue
Block a user