Update deployment-production.yml

This commit is contained in:
amir houieh 2022-06-22 12:58:22 +02:00 committed by GitHub
parent e870274b87
commit 89baaef7d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 18 deletions

View File

@ -1,28 +1,13 @@
name: Vercel webhook
on:
push:
branches: [master]
branches: [ master ]
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- name: Triggering deploy hook
uses: fjogeleit/http-request-action@v1
id: vrequest
- name: Triggering deploy hook on vercel
uses: fjogeleit/http-request-action@v1.9.2
with:
url: ${{ secrets.VERCEL_WEBHOOK_PRODUCTION }}
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 }}"