Skip to content

Point 1-click-deploy badges at Portal deploy flow#656

Merged
lionello merged 1 commit into
DefangLabs:mainfrom
defangdevs:fix/one-click-deploy-portal-flow
Jul 23, 2026
Merged

Point 1-click-deploy badges at Portal deploy flow#656
lionello merged 1 commit into
DefangLabs:mainfrom
defangdevs:fix/one-click-deploy-portal-flow

Conversation

@lionello

Copy link
Copy Markdown
Member

The 1-click-deploy badges linked to
portal.defang.dev/redirect?url=…github.com/new?template_name=…, which bounced straight to GitHub's template-creation page and skipped the Defang Portal deploy flow (create project + stack + cloud connection).

Repoint every badge at https://portal.defang.io/sample/<dirname> — the same deploy flow the sample cards on defang.io use. The slug is the sample's directory name, which is the canonical sample identifier used to build the Portal/docs samples index (prep-samples.js keys entries by directoryName).

  • Update the badge URL in all 82 sample READMEs that had one.
  • Add the badge to the 3 samples that were missing it (crewai, defang-provider-handoff, platformatic).
  • Update starter-sample/README.md so new samples scaffold the correct link.
  • Update CLAUDE.md docs (template block + badge note; the note claiming the URL was auto-managed by template-manager.js was stale).

Also fixes a stray < left in the arduino-wifi badge URL.

Claude-Session: https://claude.ai/code/session_017FZuuw58Axb7zWN9Typi22

The 1-click-deploy badges linked to
`portal.defang.dev/redirect?url=…github.com/new?template_name=…`, which
bounced straight to GitHub's template-creation page and skipped the Defang
Portal deploy flow (create project + stack + cloud connection).

Repoint every badge at `https://portal.defang.io/sample/<dirname>` — the same
deploy flow the sample cards on defang.io use. The slug is the sample's
directory name, which is the canonical sample identifier used to build the
Portal/docs samples index (`prep-samples.js` keys entries by `directoryName`).

- Update the badge URL in all 82 sample READMEs that had one.
- Add the badge to the 3 samples that were missing it (crewai,
  defang-provider-handoff, platformatic).
- Update starter-sample/README.md so new samples scaffold the correct link.
- Update CLAUDE.md docs (template block + badge note; the note claiming the
  URL was auto-managed by template-manager.js was stale).

Also fixes a stray `<` left in the arduino-wifi badge URL.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017FZuuw58Axb7zWN9Typi22
@lionello
lionello had a problem deploying to deploy-changed-samples July 23, 2026 14:09 — with GitHub Actions Failure
@lionello
lionello marked this pull request as ready for review July 23, 2026 14:09
@lionello
lionello merged commit f30f3ea into DefangLabs:main Jul 23, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants