Skip to content

chore: added actions for vercel deploy #1

chore: added actions for vercel deploy

chore: added actions for vercel deploy #1

Workflow file for this run

# https://gist.github.com/ky28059/1c9af929a9030105da8cf00006b50484
name: Deploy to vercel on merge
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dkershner6/vercel-set-env-action@v1
with:
token: ${{ secrets.VERCEL_TOKEN }}
projectName: events-app
envVariableKeys: CLIENT_EMAIL,PRIVATE_KEY,SPREADSHEET_ID
env:
CLIENT_EMAIL: ${{ secrets.CLIENT_EMAIL }}
TARGET_CLIENT_EMAIL: preview,development,production
TYPE_CLIENT_EMAIL: encrypted
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
TARGET_PRIVATE_KEY: preview,development,production
TYPE_PRIVATE_KEY: encrypted
SPREADSHEET_ID: ${{ secrets.EVENTS_APP_SPREADSHEET_ID }}
TARGET_SPREADSHEET_ID: preview,development,production
TYPE_SPREADSHEET_ID: encrypted
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-args: '--prod'
vercel-org-id: ${{ secrets.ORG_ID}}
vercel-project-id: ${{ secrets.PROJECT_ID}}