File tree Expand file tree Collapse file tree 3 files changed +56
-5
lines changed
Expand file tree Collapse file tree 3 files changed +56
-5
lines changed Original file line number Diff line number Diff line change 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 : Set up SVN
13+ run : sudo apt-get install -y subversion
14+ - name : Deploy to WordPress.org
15+ env :
16+ SVN_USERNAME : ${{ secrets.SVN_USERNAME }}
17+ SVN_PASSWORD : ${{ secrets.SVN_PASSWORD }}
18+ SLUG : paystack-add-on-for-gravity-forms
19+ run : |
20+ echo "Preparing to deploy to WordPress.org..."
21+ svn co "https://plugins.svn.wordpress.org/${SLUG}/" --username "${SVN_USERNAME}" --password "${SVN_PASSWORD}" svn
22+
23+ echo "Clearing the trunk folder..."
24+ rm -rf svn/trunk/*
25+ cp -R ./* svn/trunk/
26+
27+ echo "Adding new files to SVN..."
28+ cd svn/trunk/
29+ svn add --force * --auto-props --parents --depth infinity -q
30+
31+ echo "Setting SVN props..."
32+ svn propset svn:ignore -F .svnignore .
33+
34+ echo "Removing deleted files from SVN..."
35+ svn status | grep '^!' | awk '{print $2}' | xargs -I% svn rm %
36+
37+ echo "Committing to WordPress.org..."
38+ svn commit -m "Deploying version ${GITHUB_REF:10}" --username "${SVN_USERNAME}" --password "${SVN_PASSWORD}" --no-auth-cache
39+
40+ echo "Deployment completed!"
Original file line number Diff line number Diff line change 22/*
33Plugin Name: Paystack Add-On for Gravity Forms
44Plugin URI: https://paystack.com/docs/libraries-and-plugins/plugins#wordpress
5- Description: Integrates Gravity Forms with Paystack, enabling end users to purchase goods and services through Gravity Forms.
6- Version: 2.0.0
5+ 0
6+ Description: Integrates Gravity Forms with Paystack, enabling customers to pay for goods and services through Gravity Forms.
7+ Version: 2.0.1
78Author: Paystack
89Author URI: https://developers.paystack.com
910License: GPL-2.0+
3031
3132defined ('ABSPATH ' ) || die ();
3233
33- define ('GF_PAYSTACK_VERSION ' , '1 .0.0 ' );
34+ define ('GF_PAYSTACK_VERSION ' , '2 .0.1 ' );
3435
3536add_action ('gform_loaded ' , array ('GF_Paystack_Bootstrap ' , 'load ' ), 5 );
3637
Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ Contributors: webong, paystack
33Donate link: https://paystack.com/demo
44Tags: payments, subscriptions, gravityforms
55Requires at least: 5.1
6- Tested up to: 5.9
6+
7+ Tested up to: 6.2
78Requires PHP: 7.2 and higher
8- Stable tag: 2.0.0
9+ Stable tag: 2.0.1
10+
911License: GPLv2 or later
1012License URI: http://www.gnu.org/licenses/gpl-2.0.html
1113
@@ -54,6 +56,10 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/pl
5456
5557== Changelog ==
5658
59+ = 2.0.1 - APRIL 14, 2022 =
60+ * Test plugin up to WordPress 6.2
61+ * Fix PHP warnings about missing currency code
62+
5763= 2.0.0 - NOVEMBER 1, 2021 =
5864* Compatibility with WordPress v5.9 and PHP 8
5965
@@ -68,6 +74,10 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/pl
6874
6975
7076== Upgrade Notice ==
77+ = 1.0.2 =
78+ * Test plugin up to WordPress 6.2
79+ * Fix PHP warnings about missing currency code
80+
7181
7282= 1.0.2 =
7383* You should update to this version if you are a Kenyan merchant on Paystack
You can’t perform that action at this time.
0 commit comments