Skip to content

Commit

Permalink
Add a blueprint.json file that is used to generate a preview environm…
Browse files Browse the repository at this point in the history
…ent. Also fix up our asset deploy action
  • Loading branch information
dkotter committed Dec 18, 2023
1 parent 41d3ee8 commit b7a01e1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/update-asset-readme-on-wordpress-org.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
name: Update asset/readme on WordPress.org

on:
push:
branches:
- trunk

jobs:
trunk:
name: Push to trunk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Checkout code
uses: actions/checkout@v4

- name: Build
run: |
npm install
npm run build
composer install --no-dev
- name: WordPress.org plugin asset/readme update
uses: 10up/action-wordpress-plugin-asset-update@stable
env:
Expand Down
26 changes: 26 additions & 0 deletions .wordpress-org/blueprints/blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "\/wp-admin\/admin.php?page=block-for-apple-maps",
"preferredVersions": {
"php": "7.4",
"wp": "latest"
},
"phpExtensionBundles": ["kitchen-sink"],
"steps": [
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "installPlugin",
"pluginZipFile": {
"resource": "wordpress.org\/plugins",
"slug": "maps-block-apple"
},
"options": {
"activate": true
}
}
]
}

0 comments on commit b7a01e1

Please sign in to comment.