Skip to content

Commit be17021

Browse files
Merge pull request #87 from podnetwork/doc/v1
feat: use Github variable on action
2 parents 95a4a7c + 5c04b18 commit be17021

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/deploy-doc-site.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,21 @@ run-name: ${{ github.actor }} call deploy pod doc site 🚀
44
on:
55
push:
66
branches:
7-
- doc/v1
87
- main
98
paths:
109
- docs/**
1110

1211
jobs:
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

0 commit comments

Comments
 (0)