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 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 }}