Showing the changes to .github (1 of 6 files). Show all
Unified · Split
| @@ -625,6 +625,9 @@ jobs: · 624 unmodified lines | |||
| 625 | router_url="${T3CODE_WEB_ROUTER_URL:-https://app.t3.codes}" | 625 | router_url="${T3CODE_WEB_ROUTER_URL:-https://app.t3.codes}" |
| 626 | latest_domain="${T3CODE_WEB_LATEST_DOMAIN:-latest.app.t3.codes}" | 626 | latest_domain="${T3CODE_WEB_LATEST_DOMAIN:-latest.app.t3.codes}" |
| 627 | nightly_domain="${T3CODE_WEB_NIGHTLY_DOMAIN:-nightly.app.t3.codes}" | 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 | if [[ "${{ needs.preflight.outputs.release_channel }}" == "stable" ]]; then | 632 | if [[ "${{ needs.preflight.outputs.release_channel }}" == "stable" ]]; then |
| 630 | channel_domain="$latest_domain" | 633 | channel_domain="$latest_domain" |
| @@ -655,6 +658,13 @@ jobs: · 24 unmodified lines | |||
| 655 | --token "$VERCEL_TOKEN" \ | 658 | --token "$VERCEL_TOKEN" \ |
| 656 | "${vercel_scope_args[@]}" | 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 | finalize: | 668 | finalize: |
| 659 | name: Finalize release | 669 | name: Finalize release |
| 660 | if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' && needs.release.result == 'success' && needs.preflight.outputs.release_channel == 'stable' }} | 670 | if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' && needs.release.result == 'success' && needs.preflight.outputs.release_channel == 'stable' }} |