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
8 changes: 8 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ jobs:
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production

- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0 # v4.0.0
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
wranglerVersion: "4.125.0"
command: pages deploy docs/_site --project-name=gptcode --branch=main

- name: Upload artifact
uses: actions/upload-pages-artifact@v5
Expand Down
1 change: 1 addition & 0 deletions _roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ engineering portfolio.
- [x] Publish the site changes to the `main` branch.
- [x] Move authoritative DNS for `gptcode.dev` from GoDaddy to Cloudflare.
- [x] Associate `gptcode.dev` and `www.gptcode.dev` with Cloudflare Pages.
- [x] Deploy Jekyll changes merged to `main` automatically to Cloudflare Pages.
- [x] Publish a race-safe example with behavior tests and 100% statement coverage enforced in CI.
- [x] Replace the legacy scheduled/private release pipeline with explicit, verified tag releases.
- [x] Verify custom-domain certificate activation and HTTPS after DNS propagation.
Expand Down
17 changes: 17 additions & 0 deletions docs/test/site_identity_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@ def test_primary_domain_is_gptcode_dev
assert_includes File.read(File.join(DOCS_ROOT, "_config.yml")), 'url: "https://gptcode.dev"'
end

def test_main_site_workflow_deploys_to_cloudflare_pages
workflow = File.read(
File.join(REPO_ROOT, ".github", "workflows", "pages.yml")
)

assert_includes workflow,
"cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0"
assert_includes workflow,
'apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}'
assert_includes workflow,
'accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}'
assert_includes workflow,
"pages deploy docs/_site --project-name=gptcode --branch=main"
refute_includes workflow, "gitHubToken:"
refute_includes workflow, "deployments: write"
end

def test_site_points_to_personal_repository
assert_includes combined_content, "https://github.com/jadercorrea/gptcode"
refute_includes combined_content, "github.com/gptcode-cloud"
Expand Down