From 880574ba4b5906d73b10adc5e098fad406f6941a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8B=AE=E5=AD=90=E8=80=97=E8=80=97?= <3116737282@qq.com> Date: Sat, 26 Apr 2025 12:44:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=B8=A4=E4=B8=AAjob?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yaml | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 7c6f5b8..f364471 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -6,8 +6,11 @@ on: - cron: 30 04 * * 1,4 jobs: - build: + build-and-deploy: runs-on: ubuntu-latest + permissions: + contents: read + deployments: write steps: - name: 🚚 Checkout uses: actions/checkout@v4 @@ -32,29 +35,9 @@ jobs: - name: 🔴Build doc run: pnpm run docs:build - - name: 📦 Upload artifact - uses: actions/upload-artifact@v4 - with: - name: doc-files - path: ./src/.vuepress/dist/ - retention-days: 1 - - deploy: - needs: build - runs-on: ubuntu-latest - permissions: - contents: read - deployments: write - steps: - - name: ⬇️ Download artifact - uses: actions/download-artifact@v4 - with: - name: doc-files - path: ./dist - - name: 🚀 Deploy to Cloudflare Pages uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy ./dist --project-name=jingji-spbook-vue + command: pages deploy ./src/.vuepress/dist --project-name=jingji-spbook-vue