Skip to content

[personal-wp] Add deployment workflow for my.wordpress.net#3184

Merged
akirk merged 3 commits intotrunkfrom
add-my-wordpress-net-deployment
Jan 27, 2026
Merged

[personal-wp] Add deployment workflow for my.wordpress.net#3184
akirk merged 3 commits intotrunkfrom
add-my-wordpress-net-deployment

Conversation

@akirk
Copy link
Copy Markdown
Member

@akirk akirk commented Jan 26, 2026

Motivation for the change, related issues

Adds deployment infrastructure for the Personal Playground at my.wordpress.net, as part of the Personal Playground initiative tracked in #3174.

Personal Playground is a user-focused version of WordPress Playground that provides a simpler experience for end users who want their own persistent WordPress site in the browser.

Implementation details

New deployment workflow (.github/workflows/deploy-my-wordpress-net.yml):

  • Builds playground-personal-wp package
  • Deploys to my.wordpress.net via SSH/rsync
  • Reuses the existing website-deployment/ scripts (no duplication needed)
  • Runs on manual trigger or scheduled Tuesdays at 11am UTC (same as playground.wordpress.net)
  • Requires new GitHub environment my-wordpress-net-wp-cloud with deployment secrets

Updated README (packages/playground/personal-wp/README.md):

  • Documents Personal Playground's purpose and how it differs from playground.wordpress.net
  • Lists features: persistent OPFS storage, welcome plugin, app catalog, backup reminders, health check recovery, multi-tab coordination
  • Includes development commands, build output, and deployment instructions

Required setup before first deployment:

  1. Create GitHub environment my-wordpress-net-wp-cloud
  2. Add secrets:
    • DEPLOY_MY_WORDPRESS_NET_HOST_KEY
    • DEPLOY_MY_WORDPRESS_NET_PRIVATE_KEY
    • DEPLOY_MY_WORDPRESS_NET_USER
    • DEPLOY_MY_WORDPRESS_NET_HOST
  3. Set CORS_PROXY_URL variable

Testing Instructions (or ideally a Blueprint)

  1. Verify the workflow YAML is valid: npx yaml-lint .github/workflows/deploy-my-wordpress-net.yml
  2. Build the package locally: npx nx build playground-personal-wp
  3. Review the README for accuracy
  4. After merging, set up the GitHub environment and secrets, then trigger the workflow manually to test deployment

@akirk akirk requested a review from brandonpayton January 26, 2026 08:29
@akirk akirk changed the base branch from trunk to persistent/github-oauth January 26, 2026 08:38
@akirk akirk force-pushed the add-my-wordpress-net-deployment branch 2 times, most recently from b23d1a6 to fd2279d Compare January 26, 2026 08:43
@akirk akirk force-pushed the persistent/github-oauth branch from c5ada0d to a856cfa Compare January 26, 2026 08:52
@akirk akirk force-pushed the add-my-wordpress-net-deployment branch from fd2279d to 6052dea Compare January 26, 2026 08:52
@akirk akirk force-pushed the persistent/github-oauth branch from a856cfa to 1e68842 Compare January 26, 2026 09:04
@akirk akirk force-pushed the add-my-wordpress-net-deployment branch from 6052dea to 3b7848e Compare January 26, 2026 09:07
@akirk akirk force-pushed the persistent/github-oauth branch from 1e68842 to c4f4aa2 Compare January 26, 2026 09:15
@akirk akirk force-pushed the add-my-wordpress-net-deployment branch from 3b7848e to 33cfd44 Compare January 26, 2026 09:15
@akirk akirk force-pushed the persistent/github-oauth branch from c4f4aa2 to 83320f7 Compare January 26, 2026 09:27
@akirk akirk force-pushed the add-my-wordpress-net-deployment branch from 33cfd44 to 402a634 Compare January 26, 2026 09:27
@akirk akirk force-pushed the persistent/github-oauth branch from 83320f7 to 70fb69c Compare January 26, 2026 12:36
@akirk akirk force-pushed the add-my-wordpress-net-deployment branch 2 times, most recently from 1bc7150 to 7a8bedd Compare January 26, 2026 12:52
@akirk akirk force-pushed the persistent/github-oauth branch from 70fb69c to 0a87ca1 Compare January 26, 2026 12:52
Copy link
Copy Markdown
Member

@brandonpayton brandonpayton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, @akirk!

As part of reviewing this PR, I created the my-wordpress-net-wp-cloud environment and configured its secrets and variables.

When you are ready, we can trigger a deploy using this PR branch. Once we are done testing and ready to merge, we can add branch protections to this new GH Actions environment so deploys can only come from trunk.


on:
workflow_dispatch:
# Deploy every Tuesday at 11am UTC (same as main website)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we delayed this deployment one day to give any problems a chance to shake out with playground.wordpress.net? my.wordpress.net may be more personal to folks, and it might be good to shelter it from the risk of new deployments by letting playground.wordpress.net go first. What do you think?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, lets do that!
@copilot let's move it to Wednesday.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll do this myself. I don't think a new PR is necessary :)

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 27, 2026

@akirk I've opened a new pull request, #3197, to work on those changes. Once the pull request is ready, I'll request review from you.

@akirk akirk changed the base branch from persistent/github-oauth to trunk January 27, 2026 14:02
akirk and others added 3 commits January 27, 2026 15:04
Adds GitHub Actions workflow and build target to deploy the personal-wp
package to my.wordpress.net.

- Add `build:my-wordpress-net` target that combines playground-remote and
  playground-personal-wp into a single deployable package
- Add deployment workflow that builds and deploys via rsync/SSH
- Reuses existing website-deployment/ scripts for server configuration
- Update README with Personal Playground features and deployment docs
Co-authored-by: Brandon Payton <brandon@happycode.net>
@akirk akirk force-pushed the add-my-wordpress-net-deployment branch from 9f8eaa3 to 41ba1a3 Compare January 27, 2026 14:08
@akirk akirk merged commit 474995e into trunk Jan 27, 2026
35 checks passed
@akirk akirk deleted the add-my-wordpress-net-deployment branch January 27, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants