26 lines
595 B
YAML
26 lines
595 B
YAML
name: deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_call: {}
|
|
workflow_dispatch:
|
|
inputs:
|
|
environment:
|
|
description: "Environment to run tests against"
|
|
type: environment
|
|
required: true
|
|
|
|
run-name: deploy-${{ github.ref_name }}-${{ github.run_number }}
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Trigger Vercel Deployment
|
|
env:
|
|
VERCEL_DEPLOY_TOKEN: ${{ secrets.VERCEL_DEPLOY_TOKEN }}
|
|
run: curl -X POST https://api.vercel.com/v1/integrations/deploy/${{ env.VERCEL_DEPLOY_TOKEN }} |