-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create GitHub Actions workflow for automatic publishing #44
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
.distignore | ||
.editorconfig | ||
.git | ||
.github | ||
.gitignore | ||
.travis.yml | ||
bin | ||
builds | ||
composer.json | ||
composer.lock | ||
docker-compose.yml | ||
node_modules | ||
package.json | ||
package-lock.json | ||
phpcs.xml | ||
vendor |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Publish | ||
concurrency: | ||
group: ${{ github.event.repository.name }}-deploy | ||
cancel-in-progress: true | ||
on: | ||
release: | ||
types: | ||
- published | ||
jobs: | ||
publish-wp-plugin: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Make language files | ||
shell: bash | ||
run: | | ||
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | ||
php wp-cli.phar i18n make-pot . "languages/hypothesis.pot" | ||
- name: Publish WordPress Plugin | ||
uses: 10up/action-wordpress-plugin-deploy@stable | ||
env: | ||
SVN_USERNAME: ${{ secrets.WP_SVN_USERNAME }} | ||
SVN_PASSWORD: ${{ secrets.WP_SVN_PASSWORD }} | ||
SLUG: hypothesis |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
builds | ||
node_modules | ||
vendor | ||
wp-cli* |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Plugin URI: https://hypothes.is/ | ||
* Description: Hypothesis is an open platform for the collaborative evaluation of knowledge. This plugin embeds the necessary scripts in your WordPress site to enable any user to use Hypothesis without installing any extensions. | ||
* Version: 0.6.0 | ||
* Requires at least: 6.0 | ||
* Requires at least: 6.2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As far as I can see, many popular plugins support the latest 3 minor versions, which are 6.2, 6.3 and 6.4 |
||
* Requires PHP: 7.4 | ||
* Author: The Hypothesis Project and contributors | ||
* Author URI: https://hypothes.is/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "hypothesis", | ||
"version": "0.4.8", | ||
"version": "0.6.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was outdated, but it's not really used at the moment. |
||
"main": "Gruntfile.js", | ||
"author": "The Hypothesis Project and contributors", | ||
"repository": "http://github.com/hypothesis/wp-hypothesis/", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The secrets have been set