Compare commits
19 Commits
9dcb31ca0b
...
1.4.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 3bb7219589 | |||
| 5c347ab685 | |||
|
|
4dd82b1676 | ||
| 1869be9a19 | |||
|
|
7621ff8fb0 | ||
| 3820922535 | |||
|
|
e37517047f | ||
| ac7e1c6b66 | |||
|
|
f3c8747d30 | ||
| 816708741f | |||
| e3370bded5 | |||
| 18529618ad | |||
| 577fa8b339 | |||
| 35641f8a60 | |||
| 2c1f5c3059 | |||
| a1f88b8bb4 | |||
| 59a23af308 | |||
| fc9d07751f | |||
| 88f3322305 |
@@ -3,16 +3,15 @@ name: Deploy Quartz site to Pages
|
|||||||
env:
|
env:
|
||||||
VERSION_FRAGMENT: minor
|
VERSION_FRAGMENT: minor
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: "pages"
|
|
||||||
cancel-in-progress: false
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -20,13 +19,13 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24
|
node-version: 24
|
||||||
- id: clone quartz repo
|
|
||||||
run: git clone --depth 1 https://github.com/jackyzha0/quartz.git
|
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
id: get garden content
|
id: get garden content
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Fetch all history for git info
|
fetch-depth: 0 # Fetch all history for git info
|
||||||
path: content
|
path: content
|
||||||
|
- run: git config --global user.name "Build Pipeline"
|
||||||
|
- run: git config --global user.email "noreply@example.com"
|
||||||
- name: get current version
|
- name: get current version
|
||||||
run: echo "::set-env name=CURRENT_VERSION::$(cat version.txt)"
|
run: echo "::set-env name=CURRENT_VERSION::$(cat version.txt)"
|
||||||
working-directory: content
|
working-directory: content
|
||||||
@@ -41,19 +40,37 @@ jobs:
|
|||||||
- name: Read Current Version
|
- name: Read Current Version
|
||||||
run: echo "::set-env name=CURRENT_VERSION::$(cat version.txt)"
|
run: echo "::set-env name=CURRENT_VERSION::$(cat version.txt)"
|
||||||
working-directory: content
|
working-directory: content
|
||||||
- run: git add version.txt && git commit -m "${{ env.VERSION_FRAGMENT }} version increment [skip actions]" && git tag ${{ env.CURRENT_VERSION }}
|
- run: git add version.txt && git commit -m "${{ env.VERSION_FRAGMENT }} version increment [skip actions]"
|
||||||
working-directory: content
|
working-directory: content
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
id: clone quartz repo
|
||||||
|
with:
|
||||||
|
# Repository name with owner. For example, actions/checkout
|
||||||
|
# Default: ${{ github.repository }}
|
||||||
|
repository: 'jackyzha0/quartz.git'
|
||||||
|
github-server-url: 'https://github.com/'
|
||||||
|
fetch-depth: 1
|
||||||
|
persist-credentials: false
|
||||||
|
token: ${{secrets.GH_PAT}}
|
||||||
|
ref: v4
|
||||||
|
path: quartz
|
||||||
- name: Overlay quartz configs
|
- name: Overlay quartz configs
|
||||||
run: cp -fR content/.quartz/** .
|
run: cp -fR content/.quartz/** .
|
||||||
|
- name: Copy the content
|
||||||
|
run: cp -fR content/** quartz/content
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
working-directory: quartz
|
working-directory: quartz
|
||||||
- name: Build Quartz
|
- name: Build Quartz
|
||||||
run: npx quartz build
|
run: npx quartz build
|
||||||
|
working-directory: quartz
|
||||||
|
- run: tar czf www.tar.gz -C quartz public
|
||||||
- uses: akkuman/gitea-release-action@v1
|
- uses: akkuman/gitea-release-action@v1
|
||||||
env:
|
|
||||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
|
||||||
with:
|
with:
|
||||||
|
tag_name: ${{env.CURRENT_VERSION}}
|
||||||
|
name: ${{env.CURRENT_VERSION}}
|
||||||
files: |-
|
files: |-
|
||||||
public/**
|
www.tar.gz
|
||||||
token: ${{secrets.CI_ACCESS}}
|
token: ${{secrets.CI_ACCESS}}
|
||||||
|
- run: git push
|
||||||
|
working-directory: content
|
||||||
6
.quartz/quartz.config.ts
Normal file
6
.quartz/quartz.config.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
const config: QuartzConfig = {
|
||||||
|
configuration: {
|
||||||
|
baseUrl: "http://localhost:8080"
|
||||||
|
},
|
||||||
|
plugins: { },
|
||||||
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
0.0.1
|
1.3.0
|
||||||
|
|||||||
Reference in New Issue
Block a user