diff --git a/.gitea/workflows/quartz-build-publish.yaml b/.gitea/workflows/quartz-build-publish.yaml index 90cf690..36a812b 100644 --- a/.gitea/workflows/quartz-build-publish.yaml +++ b/.gitea/workflows/quartz-build-publish.yaml @@ -15,7 +15,8 @@ jobs: git checkout -b quartz mkdir content && find . -type d,f -maxdepth 1 -regextype posix-extended ! -regex '^\.$|\./(\.git|\.obsidian|\.trash|content).*' -exec mv {} content/ \; - + + # - parallel: - name: Clone Quartz, move content run: | git clone https://github.com/jackyzha0/quartz.git @@ -35,7 +36,7 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - + - name: Cache Quartz plugins uses: actions/cache@v5 working-directory: quartz/ @@ -60,9 +61,20 @@ jobs: run: npx quartz build 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 - workingDirectory: "quartz" - uses: cloudflare/wrangler-action@v4 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - command: pages deploy public --name=test1 + env: + # CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + working-directory: quartz/ + run: npx wrangler deploy public --name=test1 --compatibility-date=${{ steps.date.outputs.date }} \ No newline at end of file