updated deployment file

This commit is contained in:
Tanzeel159 2024-10-19 21:29:32 -05:00
parent 575a2f3eaa
commit 4abbf0b2ed

View File

@ -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