GitHub Action deploy to vercel #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
discussion: | |
types: [created, edited] | |
push: | |
branches: | |
- next14 | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Vercel cli | |
run: npm install -g vercel | |
- name: Setup | |
run: vercel pull --yes --environment=prod --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Build | |
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | |
- name: Deploy | |
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |