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 + + + + + + + + + + + + + + + + diff --git a/README.md b/README.md index ccadc38e..9b410c88 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ > Adds an avatar upload field to user profiles. Generates requested sizes on demand just like Gravatar! -[![Support Level](https://img.shields.io/badge/support-stable-blue.svg)](#support-level) ![PHPCompatibility](https://github.com/10up/simple-local-avatars/actions/workflows/php-compatibility.yml/badge.svg) [![Release Version](https://img.shields.io/github/release/10up/simple-local-avatars.svg)](https://github.com/10up/simple-local-avatars/releases/latest) ![WordPress tested up to version](https://img.shields.io/wordpress/plugin/tested/simple-local-avatars?label=WordPress) [![GPLv2 License](https://img.shields.io/github/license/10up/simple-local-avatars.svg)](https://github.com/10up/simple-local-avatars/blob/develop/LICENSE.md) +[![Support Level](https://img.shields.io/badge/support-stable-blue.svg)](#support-level) ![WordPress tested up to version](https://img.shields.io/wordpress/plugin/tested/simple-local-avatars?label=WordPress) [![GPLv2 License](https://img.shields.io/github/license/10up/simple-local-avatars.svg)](https://github.com/10up/simple-local-avatars/blob/develop/LICENSE.md) [![WordPress Playground Demo](https://img.shields.io/wordpress/plugin/v/simple-local-avatars?logo=wordpress&logoColor=FFFFFF&label=Playground%20Demo&labelColor=3858E9&color=3858E9)](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/10up/simple-local-avatars/add/playground/.wordpress-org/blueprints/blueprint.json) + +[![E2E Tests](https://github.com/10up/simple-local-avatars/actions/workflows/cypress.yml/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/cypress.yml) [![Linting](https://github.com/10up/simple-local-avatars/actions/workflows/lint.yml/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/lint.yml) ![PHPCompatibility](https://github.com/10up/simple-local-avatars/actions/workflows/php-compatibility.yml/badge.svg) [![PHPUnit](https://github.com/10up/simple-local-avatars/actions/workflows/test.yml/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/test.yml) [![Dependency Review](https://github.com/10up/simple-local-avatars/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/10up/simple-local-avatars/actions/workflows/dependency-review.yml) ## Features