Skip to content

Commit 2a2cbdb

Browse files
authored
Merge pull request #8 from helen/add/gh-actions
Add deploy and update GH Actions
2 parents 9d8ce69 + e37a7f6 commit 2a2cbdb

File tree

8 files changed

+107
-0
lines changed

8 files changed

+107
-0
lines changed

.distignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/.git
2+
/.github
3+
/.wordpress-org
4+
/node_modules
5+
6+
.distignore
7+
.gitignore
8+
package-lock.json
9+
package.json
10+
README.md

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy to WordPress.org
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
tag:
7+
name: New release
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
- name: Build
13+
run: |
14+
npm install
15+
npm run build
16+
- name: WordPress Plugin Deploy
17+
id: deploy
18+
uses: 10up/action-wordpress-plugin-deploy@stable
19+
with:
20+
generate-zip: true
21+
env:
22+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
23+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
24+
- name: Upload release asset
25+
uses: actions/upload-release-asset@v1
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
upload_url: ${{ github.event.release.upload_url }}
30+
asset_path: ${{github.workspace}}/${{ github.event.repository.name }}.zip
31+
asset_name: ${{ github.event.repository.name }}.zip
32+
asset_content_type: application/zip
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Plugin asset/readme update
2+
on:
3+
push:
4+
branches:
5+
- trunk
6+
jobs:
7+
trunk:
8+
name: Push to trunk
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Build
13+
run: |
14+
npm install
15+
npm run build
16+
- name: WordPress.org plugin asset/readme update
17+
uses: 10up/action-wordpress-plugin-asset-update@stable
18+
env:
19+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
20+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

readme.txt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
=== Revision Notes ===
2+
Contributors: helen
3+
Requires at least: 4.7
4+
License: GPLv2 or later
5+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
6+
Stable tag: 1.1
7+
8+
Add a note explaining the changes you're about to save. It's like commit messages, except for your WordPress content.
9+
10+
== Description ==
11+
12+
Enter a message describing the changes you are about to save in the Publish box, to be displayed around the admin. This is especially helpful amongst groups of editors, but can also be useful for your future self.
13+
14+
**Important note:** This plugin requires WordPress 4.4 for full functionality. Versions below 4.4 will be able to enter and save revision notes, but will only display the latest note in the All Posts list.
15+
16+
= Contributing =
17+
18+
Pull requests and issues on [GitHub](https://github.com/helenhousandi/revision-notes) welcome.
19+
20+
== Installation ==
21+
22+
Revision Notes is most easily installed automatically via the Plugins tab in your dashboard.
23+
24+
== Frequently Asked Questions ==
25+
26+
= Where are all the settings? =
27+
28+
Revision Notes is meant to be a plugin that "just works" when activated, and does not currently have plans to be complex enough to warrant any settings of its own.
29+
30+
== Screenshots ==
31+
32+
1. Revision note field in the publish metabox
33+
2. Note displayed in the revisions metabox
34+
3. Note displayed on the revisions comparison screen
35+
4. Note displayed in the posts list table
36+
37+
== Changelog ==
38+
39+
= 1.1 =
40+
Thanks to Kenshino for the following:
41+
* Initialize the plugin after the point custom post types are registered.
42+
* Set a translations directory per plugin standard.
43+
44+
= 1.0 =
45+
* Initial release

0 commit comments

Comments
 (0)