-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from 10up/feature/plugin-preview
Add support for the WordPress.org plugin preview
- Loading branch information
Showing
3 changed files
with
135 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,32 @@ | ||
name: Plugin asset/readme update | ||
|
||
on: | ||
push: | ||
branches: | ||
- trunk | ||
|
||
jobs: | ||
trunk: | ||
name: Push to trunk | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: install node v10 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10 | ||
- 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 }} | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup node version | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
cache: npm | ||
|
||
- name: Build | ||
run: | | ||
npm install | ||
npm run build | ||
composer install --no-dev --optimize-autoloader | ||
- 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"$schema": "https://playground.wordpress.net/blueprint-schema.json", | ||
"landingPage": "\/wp-admin\/post.php?post=7&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": "publisher-media-kit" | ||
}, | ||
"options": { | ||
"activate": true | ||
} | ||
}, | ||
{ | ||
"step": "importFile", | ||
"file": { | ||
"resource": "url", | ||
"url": "https:\/\/raw.githubusercontent.com\/10up\/publisher-media-kit\/65a081ba5d9f03270873d96baf7189d20fafcd7c\/.wordpress-org/blueprints/demo-data.xml" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.