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 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 }}"