Skip to content

Commit

Permalink
init my deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Yunkang Ren <[email protected]>
  • Loading branch information
renyunkang committed Oct 29, 2024
1 parent 273931d commit 4754794
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 6 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Deploy Quartz site to GitHub Pages

on:
push:
branches:
- deploy

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for git info
- name: Setup token
run: |
git config --global url."https://x-access-token:${{ secrets.TOKEN }}@github.com/".insteadOf "https://github.com/"
- name: update submodules recursively
run: |
git submodule update --init --recursive
- uses: actions/setup-node@v3
with:
node-version: 18.19
- name: Install Dependencies
run: npm ci
- name: Build Quartz
run: npx quartz build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: public

deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "content"]
path = content
url = https://github.com/MasterLibraries/shareNotes.git
Empty file removed content/.gitkeep
Empty file.
8 changes: 4 additions & 4 deletions quartz.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import * as Plugin from "./quartz/plugins"

const config: QuartzConfig = {
configuration: {
pageTitle: "🪴 Quartz 4.0",
pageTitle: "rykenのGarden",
enableSPA: true,
enablePopovers: true,
analytics: {
provider: "plausible",
},
baseUrl: "quartz.jzhao.xyz",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "created",
baseUrl: "cherryfloris.eu.org",
ignorePatterns: ["Private", "Templates", "CloudNative", "ProgramLanguage", "TmpFiles", "WeeklySummary", "WorkNotes", ".obsidian"],
defaultDateType: "modified",
theme: {
typography: {
header: "Schibsted Grotesk",
Expand Down
4 changes: 2 additions & 2 deletions quartz.layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ export const sharedPageComponents: SharedLayout = {
header: [],
footer: Component.Footer({
links: {
GitHub: "https://github.com/jackyzha0/quartz",
"Discord Community": "https://discord.gg/cRFFHYye7t",
"ryken's GitHub": "https://github.com/renyunkang",
},
}),
}
Expand All @@ -27,6 +26,7 @@ export const defaultContentPageLayout: PageLayout = {
Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()),
Component.DesktopOnly(Component.RecentNotes({ title: "Recent Notes", limit: 5, linkToMore: "tags" })),
],
right: [
Component.Graph(),
Expand Down
Binary file modified quartz/static/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4754794

Please sign in to comment.