From e51a88044fcef7727b2e7f17c5dd9eff08329cdc Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 8 Oct 2024 00:05:52 +0800 Subject: [PATCH] chore: use prebuilt rather than deploy build its better to let website build by sitemap can read git info --- .github/workflows/deploy-website.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index d1bd96b..e76d360 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -19,6 +19,16 @@ jobs: working-directory: website steps: - uses: actions/checkout@v4 + - name: Pre build + uses: amondnet/vercel-action@v25.1.1 + env: + VERSION: ${{ env.GITHUB_SHA }} + with: + vercel-token: ${{ secrets.VERCEL_TOKEN }} + vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} + vercel-project-id: prj_V3iY3AcH0wIXxMHW4oDy3W3XzfnN + working-directory: ./ + vercel-args: 'build' - name: Deploy to Vercel uses: amondnet/vercel-action@v25.1.1 env: @@ -28,4 +38,4 @@ jobs: vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} vercel-project-id: prj_V3iY3AcH0wIXxMHW4oDy3W3XzfnN working-directory: ./ - vercel-args: '--prod' + vercel-args: 'deploy --prebuilt --prod'