2022-06-20 09:49:09 +00:00
|
|
|
name: Vercel webhook
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
jobs:
|
|
|
|
deployment:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-06-22 09:48:16 +00:00
|
|
|
- name: Triggering deploy hook
|
2022-06-20 09:49:09 +00:00
|
|
|
uses: fjogeleit/http-request-action@v1
|
|
|
|
with:
|
|
|
|
url: ${{ secrets.VERCEL_WEBHOOK_PRODUCTION }}
|
2022-06-22 09:48:16 +00:00
|
|
|
method: 'POST'
|
2022-06-22 09:55:12 +00:00
|
|
|
- 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 }}"
|