Skip to content

chore(ci): add automated Surge preview deploy workflow#235

Open
marythought wants to merge 4 commits intomainfrom
chore/DSPX-2572-surge-preview-workflow
Open

chore(ci): add automated Surge preview deploy workflow#235
marythought wants to merge 4 commits intomainfrom
chore/DSPX-2572-surge-preview-workflow

Conversation

@marythought
Copy link
Contributor

@marythought marythought commented Mar 10, 2026

Summary

  • On PR opened or reopened: builds the site and deploys to https://opentdf-docs-pr-{number}.surge.sh, posts a comment with the preview URL
  • On PR synchronize (subsequent pushes): redeploys silently, no new comment
  • On PR closed: tears down the Surge preview domain

Prerequisites

Requires two repo secrets already set in repository settings:

  • SURGE_LOGINcommunity@opentdf.io
  • SURGE_TOKEN — Surge auth token for that account

Test plan

  • Open a test PR and verify preview deploys and comment appears
  • Push a commit to the PR and verify redeploy with no new comment
  • Close/merge the PR and verify teardown

🤖 Generated with Claude Code

@marythought marythought requested review from a team as code owners March 10, 2026 20:17
@github-actions
Copy link
Contributor

📄 Preview deployed to https://opentdf-docs-pr-235.surge.sh

@opentdf opentdf deleted a comment from gemini-code-assist bot Mar 10, 2026
Deploys PR previews to opentdf-docs-pr-{number}.surge.sh on open/push,
posts a comment with the URL on first open, and tears down on close.

Requires SURGE_LOGIN and SURGE_TOKEN repo secrets.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@marythought marythought force-pushed the chore/DSPX-2572-surge-preview-workflow branch from 572bb92 to 6e2e63e Compare March 10, 2026 20:23
marythought and others added 2 commits March 10, 2026 13:25
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ardown

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
gemini-code-assist[bot]

This comment was marked as outdated.

@marythought
Copy link
Contributor Author

gemini review

…workflow

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant