feat: deploy TeleCLI marketing site to Cloudflare Pages#13
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a standalone marketing website for TeleCLI plus the automation to deploy it to Cloudflare Pages for both preprod (from develop) and prod (from main), including helper scripts that pre-create the Pages project, custom domains, and DNS records, and that smoke-test deployed URLs.
Changes:
- Add
website/static site (HTML/CSS/JS, OG image, robots/sitemap, Cloudflare_headersand_redirects, 404 page). - Add
.github/workflows/deploy-cloudflare-pages.ymlwith two environment-gated jobs invokingcloudflare/wrangler-action@v4. - Add
scripts/cloudflare_pages_setup.pyandscripts/validate_static_site.py, plus new Cloudflare entries in.env.sample.
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| website/index.html | Marketing landing page markup, navigation, OG/Twitter metadata. |
| website/styles.css | Full visual styling and responsive rules for the site. |
| website/main.js | Mobile menu toggle and IntersectionObserver-based reveal animations. |
| website/404.html | Branded 404 page reusing the site stylesheet. |
| website/og.svg | Open Graph preview image (SVG). |
| website/robots.txt | Allows all crawlers and points at the sitemap. |
| website/sitemap.xml | Single-URL sitemap for the home page. |
| website/_headers | Security headers and long-lived caching for CSS/JS. |
| website/_redirects | Intended www→apex 301 redirect. |
| .github/workflows/deploy-cloudflare-pages.yml | Preprod/prod Pages deployment + validation pipeline. |
| scripts/cloudflare_pages_setup.py | Idempotent Cloudflare API setup for project, DNS, custom domains. |
| scripts/validate_static_site.py | Polls deployment URLs until expected marker text is served. |
| .env.sample | Documents Cloudflare-related env vars used by the setup script. |
Comment on lines
+13
to
+14
| <meta property="og:image" content="https://telecli.org/og.svg"> | ||
| <meta name="twitter:card" content="summary_large_image"> |
| (github.event_name == 'workflow_dispatch' && inputs.environment == 'preprod') | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: ${{ 'preprod' }} |
Comment on lines
+72
to
+80
| - name: Validate preprod deployment | ||
| env: | ||
| DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }} | ||
| ALIAS_URL: ${{ steps.deploy.outputs.pages-deployment-alias-url }} | ||
| CUSTOM_URL: https://preprod.telecli.org | ||
| EXPECTED_TEXT: Secure command-line access | ||
| VALIDATION_ATTEMPTS: "36" | ||
| VALIDATION_DELAY_SECONDS: "10" | ||
| run: python scripts/validate_static_site.py |
| CLOUDFLARE_PAGES_CUSTOM_DOMAINS: telecli.org,www.telecli.org | ||
| CLOUDFLARE_DNS_TARGET: telecli.pages.dev | ||
| CLOUDFLARE_ZONE_NAME: telecli.org | ||
| CLOUDFLARE_REPLACE_CONFLICTING_DNS: "true" |
| @@ -0,0 +1 @@ | |||
| https://www.telecli.org/* https://telecli.org/:splat 301! | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
Cloudflare credentials are stored as encrypted GitHub Actions secrets.