File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -4,23 +4,21 @@ run-name: ${{ github.actor }} call deploy pod doc site 🚀
44on :
55 push :
66 branches :
7- - doc/v1
87 - main
98 paths :
109 - docs/**
1110
1211jobs :
1312 make-api-request :
1413 runs-on : ubuntu-latest
14+ env :
15+ VERCEL_DEPLOY_URL_MAIN : ${{ secrets.VERCEL_DEPLOY_URL_MAIN }}
1516 steps :
1617 # call Vercel API to deploy
1718 - name : Make API Request
1819 id : make-api-request
19- # deploy to branch `dev` and `main`
20- # backup: no deploy dev branch for save resource
21- # curl -X POST https://api.vercel.com/v1/integrations/deploy/prj_OmjAl7G5s7kt3X5o9zbUanmswKaj/r8n5uYju4w -H "Content-Type: application/json" -H "Content-Length: 0" &
2220 run : |
23- curl -X POST https://api.vercel.com/v1/integrations/deploy/prj_OmjAl7G5s7kt3X5o9zbUanmswKaj/UKKTD8zcXp -H "Content-Type: application/json" -H "Content-Length: 0" &
21+ curl -X POST $VERCEL_DEPLOY_URL_MAIN -H "Content-Type: application/json" -H "Content-Length: 0" &
2422 wait
2523
2624 - name : Echo response
You can’t perform that action at this time.
0 commit comments