From c6715d2f3cf169b6e722d5d106195a2a8ac9fb62 Mon Sep 17 00:00:00 2001 From: U5 Date: Sat, 7 Feb 2026 19:35:07 +0900 Subject: [PATCH] =?UTF-8?q?feature:github=20actions=E3=81=A7vercel?= =?UTF-8?q?=E3=81=A7deploy#72?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/vercel-preview-deploy.yml | 24 +++++++++++++++++++ .../workflows/vercel-production-deploy.yml | 24 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .github/workflows/vercel-preview-deploy.yml create mode 100644 .github/workflows/vercel-production-deploy.yml diff --git a/.github/workflows/vercel-preview-deploy.yml b/.github/workflows/vercel-preview-deploy.yml new file mode 100644 index 0000000..7c53d2a --- /dev/null +++ b/.github/workflows/vercel-preview-deploy.yml @@ -0,0 +1,24 @@ +name: Vercel Preview Deployment + +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + +on: + push: + branches-ignore: + - main + +jobs: + Deploy-Preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Vercel CLI + run: npm install --global vercel@latest + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/vercel-production-deploy.yml b/.github/workflows/vercel-production-deploy.yml new file mode 100644 index 0000000..5144d34 --- /dev/null +++ b/.github/workflows/vercel-production-deploy.yml @@ -0,0 +1,24 @@ +name: Vercel Production Deployment + +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + +on: + push: + branches: + - main + +jobs: + Deploy-Production: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Vercel CLI + run: npm install --global vercel@latest + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}