Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/university-web-redeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
VERCEL_PROJECT_NAME: solid-connect-university-web
VERCEL_RELEASE_BRANCH: release-university
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_TOKEN_UNIV: ${{ secrets.VERCEL_TOKEN_UNIV }}
REDEPLOY_REASON: ${{ github.event.inputs.reason || github.event.client_payload.reason || 'University API data updated' }}
steps:
- name: Checkout university release branch
Expand All @@ -43,8 +43,8 @@ jobs:
run: |
set -euo pipefail

if [ -z "$VERCEL_ORG_ID" ] || [ -z "$VERCEL_TOKEN" ]; then
echo "VERCEL_ORG_ID and VERCEL_TOKEN secrets are required." >&2
if [ -z "$VERCEL_ORG_ID" ] || [ -z "$VERCEL_TOKEN_UNIV" ]; then
echo "VERCEL_ORG_ID and VERCEL_TOKEN_UNIV secrets are required." >&2
exit 1
fi

Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
--output deployment.json \
--write-out "%{http_code}" \
--request POST \
--header "Authorization: Bearer $VERCEL_TOKEN" \
--header "Authorization: Bearer $VERCEL_TOKEN_UNIV" \
--header "Content-Type: application/json" \
--data "$REQUEST_BODY" \
"https://api.vercel.com/v13/deployments?teamId=$VERCEL_ORG_ID&forceNew=1")
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:

for attempt in $(seq 1 90); do
RESPONSE=$(curl --fail-with-body --silent --show-error \
--header "Authorization: Bearer $VERCEL_TOKEN" \
--header "Authorization: Bearer $VERCEL_TOKEN_UNIV" \
"https://api.vercel.com/v13/deployments/$DEPLOYMENT_ID?teamId=$VERCEL_ORG_ID")
STATE=$(jq -r '.readyState // "UNKNOWN"' <<< "$RESPONSE")

Expand Down
2 changes: 1 addition & 1 deletion docs/university-multizone-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ GitHub Actions ํ™”๋ฉด์—์„œ ์ˆ˜๋™์œผ๋กœ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๋‹ค. API ๋ฐ์ดํ„ฐ ๊ฐฑ
}
```

workflow๋Š” ์ €์žฅ์†Œ์˜ `VERCEL_TOKEN`๊ณผ `VERCEL_ORG_ID` secret์„ ์‚ฌ์šฉํ•œ๋‹ค. ๋Œ€์ƒ ํ”„๋กœ์ ํŠธ๋Š” `solid-connect-university-web`์œผ๋กœ ๊ณ ์ •ํ•˜๋ฉฐ ๋‹ค๋ฅธ web๊ณผ admin ํ”„๋กœ์ ํŠธ๋Š” ์žฌ๋ฐฐํฌํ•˜์ง€ ์•Š๋Š”๋‹ค.
workflow๋Š” ์ €์žฅ์†Œ์˜ `VERCEL_TOKEN_UNIV`์™€ `VERCEL_ORG_ID` secret์„ ์‚ฌ์šฉํ•œ๋‹ค. ๋Œ€์ƒ ํ”„๋กœ์ ํŠธ๋Š” `solid-connect-university-web`์œผ๋กœ ๊ณ ์ •ํ•˜๋ฉฐ ๋‹ค๋ฅธ web๊ณผ admin ํ”„๋กœ์ ํŠธ๋Š” ์žฌ๋ฐฐํฌํ•˜์ง€ ์•Š๋Š”๋‹ค.

## Local Development

Expand Down
Loading