Update deployment-production.yml
This commit is contained in:
parent
e870274b87
commit
89baaef7d3
|
@ -1,28 +1,13 @@
|
||||||
name: Vercel webhook
|
name: Vercel webhook
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [ master ]
|
||||||
jobs:
|
jobs:
|
||||||
deployment:
|
deployment:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Triggering deploy hook
|
- name: Triggering deploy hook on vercel
|
||||||
uses: fjogeleit/http-request-action@v1
|
uses: fjogeleit/http-request-action@v1.9.2
|
||||||
id: vrequest
|
|
||||||
with:
|
with:
|
||||||
url: ${{ secrets.VERCEL_WEBHOOK_PRODUCTION }}
|
url: ${{ secrets.VERCEL_WEBHOOK_PRODUCTION }}
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
- name: show response
|
|
||||||
run: |
|
|
||||||
echo ${{steps.vrequest.outputs.job.id}}
|
|
||||||
- run: sleep 60
|
|
||||||
- name: vercel-preview-url
|
|
||||||
uses: zentered/vercel-preview-url@v1.0.5
|
|
||||||
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 }}"
|
|
||||||
|
|
Loading…
Reference in New Issue