diff --git a/.github/workflows/push-asset-readme-update.yml b/.github/workflows/push-asset-readme-update.yml index 9db101cf..587ea7a6 100644 --- a/.github/workflows/push-asset-readme-update.yml +++ b/.github/workflows/push-asset-readme-update.yml @@ -1,22 +1,27 @@ name: Plugin asset/readme update + on: push: branches: - trunk + jobs: trunk: name: Push to trunk runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup node version + uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' - name: Build run: | npm install npm run build + - 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 00000000..27ddcc05 --- /dev/null +++ b/.wordpress-org/blueprints/blueprint.json @@ -0,0 +1,47 @@ +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "landingPage": "\/wp-admin\/options-discussion.php", + "preferredVersions": { + "php": "7.4", + "wp": "latest" + }, + "phpExtensionBundles": ["kitchen-sink"], + "features": { + "networking": true + }, + "steps": [ + { + "step": "login", + "username": "admin", + "password": "password" + }, + { + "step": "importFile", + "file": { + "resource": "url", + "url": "https:\/\/raw.githubusercontent.com\/10up\/simple-local-avatars\/073f1979d6addeb3eecd7fb8cf56efe9bcfa7007\/.wordpress-org\/blueprints\/demo-data.xml" + } + }, + { + "step": "installPlugin", + "pluginZipFile": { + "resource": "wordpress.org\/plugins", + "slug": "simple-local-avatars" + }, + "options": { + "activate": true + } + }, + { + "step": "setSiteOptions", + "options": { + "avatar_default": "simple_local_avatar", + "simple_local_avatars": { + "caps": 1, + "only": 1 + }, + "simple_local_avatar_default": 5 + } + } + ] +} diff --git a/.wordpress-org/blueprints/demo-data.xml b/.wordpress-org/blueprints/demo-data.xml new file mode 100644 index 00000000..9350b43e --- /dev/null +++ b/.wordpress-org/blueprints/demo-data.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + My WordPress Website + https://playground.wordpress.net + + Wed, 03 Jan 2024 17:06:28 +0000 + en-US + 1.2 + https://playground.wordpress.net + https://playground.wordpress.net + + 1 + + + https://wordpress.org/?v=6.4.2 + + + <![CDATA[8bits love]]> + https://playground.wordpress.net/?attachment_id=5 + Wed, 03 Jan 2024 16:59:46 +0000 + + https://playground.wordpress.net/wp-content/uploads/2024/01/4503001362_7255e57a75_o.jpg + + + 8bits Love" by MA!LO is licensed under CC BY-SA 2.0 ]]> + 5 + + + + + + + + + 0 + 0 + + + 0 + + + + + + + + + + + + + + + +