chore: use prebuilt rather than deploy build

its better to let website build by sitemap can read git info
This commit is contained in:
moonrailgun 2024-10-08 00:05:52 +08:00
parent 1e57905f32
commit e51a88044f

View File

@ -19,6 +19,16 @@ jobs:
working-directory: website working-directory: website
steps: steps:
- uses: actions/checkout@v4 - 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 - name: Deploy to Vercel
uses: amondnet/vercel-action@v25.1.1 uses: amondnet/vercel-action@v25.1.1
env: env:
@ -28,4 +38,4 @@ jobs:
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: prj_V3iY3AcH0wIXxMHW4oDy3W3XzfnN vercel-project-id: prj_V3iY3AcH0wIXxMHW4oDy3W3XzfnN
working-directory: ./ working-directory: ./
vercel-args: '--prod' vercel-args: 'deploy --prebuilt --prod'