minimalistic-wallpaper-coll.../.github/workflows/vercel-deploy.yml

25 lines
660 B
YAML

name: "Deploy to Vercel"
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy to Vercel
uses: amondnet/vercel-action@v25.1.1
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
# use --prod if it is a push to main, otherwise it is a preview
vercel-args: ${{ github.event_name != 'pull_request' && '--prod' || '' }}