* update wiki with temp instructions for CLI #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy wiki | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'wiki/**' | |
workflow_dispatch: | |
permissions: | |
actions: read | |
pages: write | |
id-token: write | |
jobs: | |
buildWiki: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version: 20 | |
- name: Checkout quartz | |
uses: actions/checkout@v4 | |
with: | |
repository: 'jackyzha0/quartz' | |
# v4.3.1 tag | |
ref: 'v4.3.1' | |
path: 'quartz' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install dependencies | |
run: npm install | |
working-directory: quartz | |
- name: Copy quarts.config.ts from wiki | |
run: cp wiki/quartz.config.ts quartz/quartz.config.ts | |
- name: Build wiki | |
run: npx quartz build -d '../wiki' -o '../wiki-public' | |
working-directory: quartz | |
- name: Upload wiki | |
uses: actions/[email protected] | |
with: | |
path: 'wiki-public' | |
name: wiki | |
- name: Deploy wiki | |
uses: actions/[email protected] | |
with: | |
artifact_name: wiki | |
token: ${{ secrets.GITHUB_TOKEN }} |