-
Notifications
You must be signed in to change notification settings - Fork 0
feat(playground): add main-build Playground demo alongside release demo #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a5cf17d
feat(playground): add main-build Playground demo alongside release demo
dknauss d2fb51c
ci(playground): add scheduled Demo Link Monitor for blueprint install…
dknauss 0352466
Merge remote-tracking branch 'origin/main' into feat/playground-main-…
dknauss 17b5f18
ci(playground): harden main-preview publish per Codex review
dknauss 343a63d
ci(playground): address Codex round-2 review of main-preview publish
dknauss e03fc92
ci(playground): address Codex round-2 review (TOCTOU, jq robustness, …
dknauss 9f3cbbd
ci(playground): fix gh repo context + sync SPEC.md (Codex round-3)
dknauss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| name: Demo Link Monitor | ||
|
|
||
| # Verifies the Playground demo blueprints' install URLs stay reachable and never | ||
| # regress to the browser-broken `git:directory` resource. Scheduled (external | ||
| # release assets can rot over time) plus manual dispatch. Not run on PRs — the | ||
| # structural blueprint contract is already covered by src/blueprint.test.js. | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '17 9 * * 1' # Mondays 09:17 UTC | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check-demo-links: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Check demo install URLs resolve | ||
| run: sh ./scripts/check-demo-links.sh |
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| { | ||
| "$schema": "https://playground.wordpress.net/blueprint-schema.json", | ||
| "meta": { | ||
| "title": "Borges Bibliography Builder (main build)", | ||
| "description": "Launch WordPress Playground with the current development build of the Borges Bibliography Builder plugin from the main branch.", | ||
| "author": "danknauss", | ||
| "categories": ["plugin", "bibliography", "block-editor"] | ||
| }, | ||
| "landingPage": "/wp-admin/post.php?post=1&action=edit", | ||
| "preferredVersions": { | ||
| "php": "8.3", | ||
| "wp": "latest" | ||
| }, | ||
| "phpExtensionBundles": ["kitchen-sink"], | ||
| "features": { | ||
| "networking": true, | ||
| "intl": true | ||
| }, | ||
| "login": true, | ||
| "steps": [ | ||
| { | ||
| "step": "installPlugin", | ||
| "pluginData": { | ||
| "resource": "url", | ||
| "url": "https://wordpress-playground-cors-proxy.net/?https://github.com/dknauss/Borges/releases/download/main-preview/borges-bibliography-builder.zip" | ||
| }, | ||
| "options": { | ||
| "activate": true, | ||
| "targetFolderName": "borges-bibliography-builder" | ||
| }, | ||
| "ifAlreadyInstalled": "overwrite" | ||
| }, | ||
| { | ||
| "step": "installPlugin", | ||
| "pluginData": { | ||
| "resource": "wordpress.org/plugins", | ||
| "slug": "block-accessibility-checks" | ||
| }, | ||
| "options": { | ||
| "activate": true | ||
| } | ||
| }, | ||
| { | ||
| "step": "runPHP", | ||
| "code": "<?php\nrequire_once '/wordpress/wp-load.php';\n\n$post_content = <<<'EOT'\n<!-- wp:paragraph -->\n<p><strong>Welcome to the Borges Bibliography Builder development build.</strong> This Playground runs the current <code>main</code> branch, not a stable release. Use the Bibliography block below, then paste one or more sample entries into the <em>Paste / Import</em> field (separate entries with a blank line).</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:code -->\n<pre class=\"wp-block-code\"><code>10.1145/3368089.3409742\n\n10.1038/s41586-020-2649-2\n\nPMID:26673779\n\n@article{knuth1984literate,\n author = {Knuth, Donald E.},\n title = {Literate Programming},\n journal = {The Computer Journal},\n year = {1984},\n volume = {27},\n number = {2},\n pages = {97--111},\n doi = {10.1093/comjnl/27.2.97}\n}</code></pre>\n<!-- /wp:code -->\n\n<!-- wp:paragraph -->\n<p>Tip: In the block sidebar, try changing citation style and export actions (CSL-JSON, BibTeX, RIS).</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:bibliography-builder/bibliography {\"citationStyle\":\"chicago-notes-bibliography\",\"showHeading\":true,\"headingText\":\"References\",\"outputJsonLd\":true,\"outputCoins\":false,\"outputCslJson\":false,\"citations\":[]} /-->\nEOT;\n\nwp_update_post(\n\tarray(\n\t\t'ID' => 1,\n\t\t'post_title' => 'Borges Bibliography Playground Starter (main build)',\n\t\t'post_content' => $post_content,\n\t)\n);\n" | ||
| } | ||
| ] | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.