Showing the changes to .github (1 of 6 files). Show all
Unified · Split
| @@ -625,6 +625,9 @@ jobs: · 624 unmodified lines | ||
| 625 | 625 | router_url="${T3CODE_WEB_ROUTER_URL:-https://app.t3.codes}" |
| 626 | 626 | latest_domain="${T3CODE_WEB_LATEST_DOMAIN:-latest.app.t3.codes}" |
| 627 | 627 | nightly_domain="${T3CODE_WEB_NIGHTLY_DOMAIN:-nightly.app.t3.codes}" |
| 628 | + router_domain="${router_url#http://}" | |
| 629 | + router_domain="${router_domain#https://}" | |
| 630 | + router_domain="${router_domain%%/*}" | |
| 628 | 631 | |
| 629 | 632 | if [[ "${{ needs.preflight.outputs.release_channel }}" == "stable" ]]; then |
| 630 | 633 | channel_domain="$latest_domain" |
| @@ -655,6 +658,13 @@ jobs: · 24 unmodified lines | ||
| 655 | 658 | --token "$VERCEL_TOKEN" \ |
| 656 | 659 | "${vercel_scope_args[@]}" |
| 657 | 660 | |
| 661 | + if [[ "$channel_name" == "latest" && -n "$router_domain" && "$router_domain" != "$channel_domain" ]]; then | |
| 662 | + echo "Aliasing $deployment_url to router domain $router_domain." | |
| 663 | + bunx vercel@53.1.1 alias set "$deployment_url" "$router_domain" \ | |
| 664 | + --token "$VERCEL_TOKEN" \ | |
| 665 | + "${vercel_scope_args[@]}" | |
| 666 | + fi | |
| 667 | + | |
| 658 | 668 | finalize: |
| 659 | 669 | name: Finalize release |
| 660 | 670 | if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' && needs.release.result == 'success' && needs.preflight.outputs.release_channel == 'stable' }} |