diff --git a/.github/workflows/.github/workflows/deploy.yml b/.github/workflows/.github/workflows/deploy.yml new file mode 100644 index 0000000..adb8e32 --- /dev/null +++ b/.github/workflows/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: vercel-deploy +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 + strategy: + matrix: + node-version: [18.x] + steps: + - uses: actions/checkout@v4.1.1 + - uses: pnpm/action-setup@v2.4.0 + with: + version: 8 + - name: Use Node.js ${{ matrix.node-version }} and install vercel CLI + uses: actions/setup-node@v4.0.1 + with: + node-version: ${{ matrix.node-version }} + cache: pnpm + - run: pnpm i -g vercel + - name: Deploy Project Vercel + run: vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }}