logos-sites-content-repo-te.../.github/workflows/deployment-production.yml

25 lines
727 B
YAML

name: Vercel webhook
on:
push:
branches: [master]
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- name: Triggering deploy hook
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.VERCEL_WEBHOOK_PRODUCTION }}
method: 'POST'
- run: sleep 60
- name: vercel-preview-url
uses: zentered/vercel-preview-url@v1.0.0
id: vercel_preview_url
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
with:
vercel_team_id: ${{ secrets.VERCEL_TEAM_ID }}
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID }}
- name: Get URL
run: echo "https://${{ steps.vercel_preview_url.outputs.preview_url }}"