From c3de0bae093237e870fa8e534e69c219ddd02301 Mon Sep 17 00:00:00 2001 From: chu fan Date: Thu, 28 Sep 2023 16:43:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DGithub=20Release?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml index 508f161..7888d6d 100644 --- a/.github/workflows/CD.yaml +++ b/.github/workflows/CD.yaml @@ -85,7 +85,7 @@ jobs: deploy-vercel: name: "部署到Vercel平台" needs: install-init - runs-on: ubuntu-latest + runs-on: macos-latest if: github.repository == '142vip/408CSFamily' steps: - name: Checkout Code @@ -105,7 +105,7 @@ jobs: ## 注意:安装pnpm - name: Build Project Artifacts - run: npm i pnpm -g && vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} @@ -119,6 +119,11 @@ jobs: if: github.repository == '142vip/408CSFamily' && startsWith(github.event.head_commit.message, 'chore(release):') steps: + - name: Checkout Code + uses: actions/checkout@v3 + with: + # “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录 + fetch-depth: 0 ### 打成压缩包 - name: Create Zip Package