From 780ba8ebd2db40e3b9f30d5ba65adcbba54bea74 Mon Sep 17 00:00:00 2001 From: ghoon99 Date: Fri, 11 Oct 2024 23:05:12 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20vercel=20=EB=B9=8C=EB=93=9C=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-vercel-prod.yml | 25 ++++++++++++++++++++++++ .gitignore | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy-vercel-prod.yml diff --git a/.github/workflows/deploy-vercel-prod.yml b/.github/workflows/deploy-vercel-prod.yml new file mode 100644 index 0000000..f833572 --- /dev/null +++ b/.github/workflows/deploy-vercel-prod.yml @@ -0,0 +1,25 @@ +name: Vercel Production 배포 +run-name: Vercel Production 배포 by @${{ github.actor }} +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +on: + workflow_dispatch: + +jobs: + Deploy-Production: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - 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 }} diff --git a/.gitignore b/.gitignore index 7b74e43..14e7408 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,5 @@ dist-ssr *.sw? *storybook.log -storybook-static \ No newline at end of file +storybook-static +.vercel