diff --git a/.github/workflows/dotorg-asset-readme-update.yml b/.github/workflows/dotorg-asset-readme-update.yml index a484115..1f5875a 100644 --- a/.github/workflows/dotorg-asset-readme-update.yml +++ b/.github/workflows/dotorg-asset-readme-update.yml @@ -4,15 +4,28 @@ 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: Setup node version + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm + + - name: Build + run: | + npm install + npm run build + - name: WordPress.org plugin asset/readme update uses: 10up/action-wordpress-plugin-asset-update@stable env: SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} - SVN_USERNAME: ${{ secrets.SVN_USERNAME }} \ No newline at end of file + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} diff --git a/.wordpress-org/blueprints/blueprint.json b/.wordpress-org/blueprints/blueprint.json new file mode 100644 index 0000000..58dfc9d --- /dev/null +++ b/.wordpress-org/blueprints/blueprint.json @@ -0,0 +1,36 @@ +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "landingPage": "\/wp-admin\/post.php?post=9&action=edit", + "preferredVersions": { + "php": "7.4", + "wp": "latest" + }, + "phpExtensionBundles": ["kitchen-sink"], + "features": { + "networking": true + }, + "steps": [ + { + "step": "login", + "username": "admin", + "password": "password" + }, + { + "step": "installPlugin", + "pluginZipFile": { + "resource": "wordpress.org\/plugins", + "slug": "insecure-content-warning" + }, + "options": { + "activate": true + } + }, + { + "step": "importFile", + "file": { + "resource": "url", + "url": "https:\/\/raw.githubusercontent.com\/10up\/insecure-content-warning\/6102837ca26c1d0b05ba15ef9d1b7d63f5201ff9\/.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..e1de5f0 --- /dev/null +++ b/.wordpress-org/blueprints/demo-data.xml @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + My WordPress Website + https://playground.wordpress.net/ + + Tue, 19 Dec 2023 20:50:47 +0000 + en-US + 1.2 + https://playground.wordpress.net/ + https://playground.wordpress.net/ + + 1 + + + https://wordpress.org/?v=6.4.2 + + + <![CDATA[Insecure content demo]]> + https://playground.wordpress.net/?p=9 + + + https://playground.wordpress.net/?p=9 + + +

This post has an image that is using an insecure URL.

+ + + +

Try publishing this post to see this image get flagged.

+ + + +
+]]>
+ + 9 + + + + + + + + + 0 + 0 + + + 0 + +
+
+