From e19bc7baabf5761763af2bab784ba4cf1828f527 Mon Sep 17 00:00:00 2001 From: andus Date: Mon, 24 Aug 2026 13:24:57 -0400 Subject: [PATCH] Update .gitea/workflows/quartz-build-publish.yaml --- .gitea/workflows/quartz-build-publish.yaml | 47 +++++++++++++++++----- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/quartz-build-publish.yaml b/.gitea/workflows/quartz-build-publish.yaml index c661d67..ca8142f 100644 --- a/.gitea/workflows/quartz-build-publish.yaml +++ b/.gitea/workflows/quartz-build-publish.yaml @@ -8,15 +8,44 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v4 - - name: Clone repo status - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - name: Move files + + - name: Organize content run: | + echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + git checkout -b quartz mkdir content && find . -type d,f -maxdepth 1 -regextype posix-extended ! -regex '^\.$|\./(\.git|\.obsidian|\.trash|content).*' -exec mv {} content/ \; - - name: Create branch for quartz - run: git checkout -b quartz - - name: Clone Quartz - run: git clone https://github.com/jackyzha0/quartz.git && ls -al - - run: mv content/* quartz/content - - run: ls -l quartz/content \ No newline at end of file + + - name: Clone Quartz, build + run: | + git clone https://github.com/jackyzha0/quartz.git + mv content/* quartz/content + + - name: Setup Node + uses: actions/setup-node@v6 + with: + node-version: 24 + + - name: Cache dependencies + uses: actions/cache@v5 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Cache Quartz plugins + uses: actions/cache@v5 + with: + path: .quartz/plugins + key: ${{ runner.os }}-plugins-${{ hashFiles('quartz.lock.json') }} + restore-keys: | + ${{ runner.os }}-plugins- + + - run: npm install + + - name: Install Quartz plugins + run: npx quartz plugin install + + - name: Check types and style + run: npm run check \ No newline at end of file