Skip to content

Commit

Permalink
GitHub Action deploy to vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyu1818 committed Jun 5, 2024
1 parent 0847275 commit f2d3a62
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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 }}
13 changes: 0 additions & 13 deletions .github/workflows/discussion-opened.yml

This file was deleted.

0 comments on commit f2d3a62

Please sign in to comment.