system-aspect/.github/workflows/deploy.yml

35 lines
826 B
YAML

name: Build Quartz site
on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
path: 'content'
fetch-depth: 0 # Fetch all history for git info
- name: "Fetching Quartz"
uses: actions/checkout@v3
with:
repository: 'jackyzha0/quartz'
path: 'content/.github/actions/deploy-quartz/quartz'
github-server-url: 'https://github.com'
token: ${{ secrets.GH_PAT }}
- name: "Copying content"
run: cp -RF ./content/!(.github) ./content/.github/actions/deploy-quartz
- name: "Building Quartz content"
uses: ./content/.github/actions/deploy-quartz/