From 0f81a01fa6756996d903c233a5f5ffc6ead7c843 Mon Sep 17 00:00:00 2001 From: manNomi Date: Sun, 25 Jan 2026 01:46:30 +0900 Subject: [PATCH 1/2] chore: remove duplicate build.yml workflow - Vercel GitHub Integration already handles main branch deployments - Remove redundant custom deployment workflow - Keep headver-tagging for version management if needed separately --- .github/workflows/build.yml | 67 ------------------------------------- 1 file changed, 67 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 8d94ace0..00000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Build and Vercel Production Deployment on Main -permissions: - contents: write - -env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - VERCEL_ENV: production - -on: - push: - branches: - - main - - workflow_dispatch: - -jobs: - generate_tag: - uses: ./.github/workflows/headver-tagging.yml - with: {} - - Deploy-Production: - runs-on: ubuntu-latest - needs: generate_tag - env: - VERSION_TAG: ${{ needs.generate_tag.outputs.version }} - steps: - - uses: actions/checkout@v3 - - - name: Install pnpm - uses: pnpm/action-setup@v3 - with: - version: 9 - - - name: Install Vercel CLI - run: pnpm add --global vercel@latest - - - name: Clean Vercel Directory - run: rm -rf .vercel - - - name: Pull Vercel Environment Information - run: | - vercel pull \ - --yes \ - --environment=${{ env.VERCEL_ENV }} \ - --token=${{ secrets.VERCEL_TOKEN }} - - - name: Build Project Artifacts - run: | - vercel build \ - --yes \ - --target=${{ env.VERCEL_ENV }} \ - - --token=${{ secrets.VERCEL_TOKEN }} - - - name: Deploy Project Artifacts to Vercel - run: | - vercel deploy \ - --prebuilt \ - --target=${{ env.VERCEL_ENV }} \ - - --token=${{ secrets.VERCEL_TOKEN }} - - - name: Output Tag Version - run: echo "Deployment completed for version $VERSION_TAG" - - \ No newline at end of file From 26b4deb802af262dad0e382964d6a9c93c1f55ec Mon Sep 17 00:00:00 2001 From: manNomi Date: Sun, 25 Jan 2026 01:48:03 +0900 Subject: [PATCH 2/2] fix: update release.yml to use env vars instead of link - Remove vercel link step and use VERCEL_ORG_ID/PROJECT_ID env vars - Add .vercel directory cleanup to prevent errors --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 43f8f283..0eecaaa6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,8 +50,8 @@ jobs: - name: Install Vercel CLI run: pnpm add --global vercel@latest - - name: Link Vercel Project - run: vercel link --yes --project=${{ secrets.VERCEL_PROJECT_ID }} --token=${{ secrets.VERCEL_TOKEN }} + - name: Clean Vercel Directory + run: rm -rf .vercel - name: Pull Vercel Environment Information run: vercel pull --yes --environment=${{ env.VERCEL_ENV }} --token=${{ secrets.VERCEL_TOKEN }}