diff --git a/.github/workflows/update-asset-readme-on-wordpress-org.yml b/.github/workflows/update-asset-readme-on-wordpress-org.yml index 485b896..62b0882 100644 --- a/.github/workflows/update-asset-readme-on-wordpress-org.yml +++ b/.github/workflows/update-asset-readme-on-wordpress-org.yml @@ -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: diff --git a/.wordpress-org/blueprints/blueprint.json b/.wordpress-org/blueprints/blueprint.json new file mode 100644 index 0000000..8c955ab --- /dev/null +++ b/.wordpress-org/blueprints/blueprint.json @@ -0,0 +1,33 @@ +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "landingPage": "\/wp-admin\/post.php?post=6&action=edit", + "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 + } + }, + { + "step": "importFile", + "file": { + "resource": "url", + "url": "https:\/\/raw.githubusercontent.com\/10up\/maps-block-apple\/385fb9705624c2fe6822ac399ed08f09a5e80388\/.wordpress-org/blueprints\/demo-data.xml" + } + } + ] +} diff --git a/.wordpress-org/blueprints/demo-data.xml b/.wordpress-org/blueprints/demo-data.xml new file mode 100644 index 0000000..b525457 --- /dev/null +++ b/.wordpress-org/blueprints/demo-data.xml @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + My WordPress Website + https://playground.wordpress.net/ + + Mon, 18 Dec 2023 22:55:30 +0000 + en-US + 1.2 + https://playground.wordpress.net/ + https://playground.wordpress.net/ + + 1 + + + https://wordpress.org/?v=6.4.2 + + <![CDATA[Apple Maps Block Demo]]> + https://playground.wordpress.net/?p=6 + Mon, 18 Dec 2023 22:55:23 +0000 + + https://playground.wordpress.net/?p=6 + + +

This is a demo of the Apple Maps block. You'll need to enter valid credentials in the block below in order to test.

+ + + +
+]]>
+ + 6 + + + + + + + + + 0 + 0 + + + 0 + + + + + + + + + +
+
+