diff --git a/.github/workflows/push-asset-readme-update.yml b/.github/workflows/push-asset-readme-update.yml index 56e36596..22f0b684 100644 --- a/.github/workflows/push-asset-readme-update.yml +++ b/.github/workflows/push-asset-readme-update.yml @@ -1,14 +1,24 @@ name: Plugin asset/readme update + 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 i --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 00000000..c4662c2c --- /dev/null +++ b/.wordpress-org/blueprints/blueprint.json @@ -0,0 +1,41 @@ +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "landingPage": "\/wp-admin\/options-reading.php", + "preferredVersions": { + "php": "7.4", + "wp": "latest" + }, + "phpExtensionBundles": ["kitchen-sink"], + "steps": [ + { + "step": "login", + "username": "admin", + "password": "password" + }, + { + "step": "installPlugin", + "pluginZipFile": { + "resource": "wordpress.org\/plugins", + "slug": "restricted-site-access" + }, + "options": { + "activate": true + } + }, + { + "step": "setSiteOptions", + "options": { + "rsa_options": { + "approach": 3, + "allowed": [ + "127.0.0.1" + ], + "comment": [ + "Example of an allowed IP address" + ] + }, + "rsa_activation_version": "7.5.0" + } + } + ] +}