Merge remote-tracking branch 'origin/main'
Quartz Publisher / Quartz-Build-Publish (push) Successful in 14m29s
Quartz Publisher / Quartz-Build-Publish (push) Successful in 14m29s
This commit is contained in:
@@ -15,7 +15,8 @@ jobs:
|
|||||||
git checkout -b quartz
|
git checkout -b quartz
|
||||||
mkdir content &&
|
mkdir content &&
|
||||||
find . -type d,f -maxdepth 1 -regextype posix-extended ! -regex '^\.$|\./(\.git|\.obsidian|\.trash|content).*' -exec mv {} content/ \;
|
find . -type d,f -maxdepth 1 -regextype posix-extended ! -regex '^\.$|\./(\.git|\.obsidian|\.trash|content).*' -exec mv {} content/ \;
|
||||||
|
|
||||||
|
# - parallel:
|
||||||
- name: Clone Quartz, move content
|
- name: Clone Quartz, move content
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/jackyzha0/quartz.git
|
git clone https://github.com/jackyzha0/quartz.git
|
||||||
@@ -35,7 +36,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
|
|
||||||
- name: Cache Quartz plugins
|
- name: Cache Quartz plugins
|
||||||
uses: actions/cache@v5
|
uses: actions/cache@v5
|
||||||
working-directory: quartz/
|
working-directory: quartz/
|
||||||
@@ -60,9 +61,20 @@ jobs:
|
|||||||
run: npx quartz build
|
run: npx quartz build
|
||||||
working-directory: quartz/
|
working-directory: quartz/
|
||||||
|
|
||||||
|
# - name: Wrangler deploy
|
||||||
|
# workingDirectory: "quartz"
|
||||||
|
# uses: cloudflare/wrangler-action@v4
|
||||||
|
# with:
|
||||||
|
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
# command: deploy public --name=test1
|
||||||
|
|
||||||
|
- name: Get current date
|
||||||
|
id: date
|
||||||
|
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
||||||
|
|
||||||
- name: Wrangler deploy
|
- name: Wrangler deploy
|
||||||
workingDirectory: "quartz"
|
env:
|
||||||
uses: cloudflare/wrangler-action@v4
|
# CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
with:
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
working-directory: quartz/
|
||||||
command: pages deploy public --name=test1
|
run: npx wrangler deploy public --name=test1 --compatibility-date=${{ steps.date.outputs.date }}
|
||||||
Reference in New Issue
Block a user