Skip to content

Commit

Permalink
Quartz sync: Aug 6, 2024, 11:17 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
wracce committed Aug 6, 2024
1 parent df1f892 commit c4490db
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy Quartz site to GitHub Pages

on:
push:
branches:
- v4
workflow_dispatch:
pull_request:
branches:
- v4

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@v4
with:
fetch-depth: 0 # Fetch all history for git info
submodules: true # Чтобы подтянуть подмодули
submodules_recursive: true
- uses: actions/setup-node@v4
- name: Install Dependencies
run: npm ci
- name: Build Quartz
run: npx quartz build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
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@v4
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "file:///c%3A/Library/Projects/websoft-docs-page/quartz/.github/workflows/deploy.yml"
}
}
2 changes: 1 addition & 1 deletion quartz.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config: QuartzConfig = {
provider: "plausible", // TODO: Настроить
},
locale: "ru-RU",
baseUrl: "quartz.jzhao.xyz",
baseUrl: "wracce.github.io/websoft-docs-page",
ignorePatterns: ["private", "templates", ".obsidian","README.md"],
defaultDateType: "created",
theme: {
Expand Down

0 comments on commit c4490db

Please sign in to comment.