diff --git a/.github/workflows/wordpress-plugin-asset-update.yml b/.github/workflows/wordpress-plugin-asset-update.yml index 5ba86f65..ad59ca8e 100644 --- a/.github/workflows/wordpress-plugin-asset-update.yml +++ b/.github/workflows/wordpress-plugin-asset-update.yml @@ -10,12 +10,23 @@ jobs: name: Push to trunk runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: Build - run: | - composer install --no-dev - - 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 }} + - 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 + composer install --no-dev + + - 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 }} diff --git a/.wordpress-org/blueprints/Info-icon_Wikipedians.svg b/.wordpress-org/blueprints/Info-icon_Wikipedians.svg new file mode 100644 index 00000000..a1c1009e --- /dev/null +++ b/.wordpress-org/blueprints/Info-icon_Wikipedians.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.wordpress-org/blueprints/blueprint.json b/.wordpress-org/blueprints/blueprint.json new file mode 100644 index 00000000..928b9bc9 --- /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": "safe-svg" + }, + "options": { + "activate": true + } + }, + { + "step": "importFile", + "file": { + "resource": "url", + "url": "https:\/\/raw.githubusercontent.com\/10up\/safe-svg\/ec6071406de403e9c9f4b5833abf4e438816df05\/.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 00000000..cc38c6d1 --- /dev/null +++ b/.wordpress-org/blueprints/demo-data.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + My WordPress Website + https://playground.wordpress.net/ + + Thu, 21 Dec 2023 15:52:39 +0000 + en-US + 1.2 + https://playground.wordpress.net/ + https://playground.wordpress.net/ + + 1 + + + https://wordpress.org/?v=6.4.2 + + + <![CDATA[Safe SVG demo]]> + https://playground.wordpress.net/?p=6 + Thu, 21 Dec 2023 15:52:18 +0000 + + https://playground.wordpress.net/?p=6 + + +

This is a demo of the Safe SVG plugin.

+ + + +

There's an SVG icon displayed below. This SVG "Info-icon Wikipedians" by David Peters is licensed under CC BY-SA 3.0.

+ + + +
+ + + +

You can try uploading additional SVG files either straight in the Media Library or inline here using the Inline SVG block or core Image block. In addition, you can control which users have the ability to upload SVGs by going to Settings > Media.

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