Skip to content

Commit 0a3bb23

Browse files
Merge pull request #7 from PaystackOSS/release/1.0.2
Release/1.0.2
2 parents ac7eb08 + 51caecf commit 0a3bb23

File tree

3 files changed

+56
-5
lines changed

3 files changed

+56
-5
lines changed

.github/deploy.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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!"

paystack.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
/*
33
Plugin Name: Paystack Add-On for Gravity Forms
44
Plugin 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
78
Author: Paystack
89
Author URI: https://developers.paystack.com
910
License: GPL-2.0+
@@ -30,7 +31,7 @@
3031

3132
defined('ABSPATH') || die();
3233

33-
define('GF_PAYSTACK_VERSION', '1.0.0');
34+
define('GF_PAYSTACK_VERSION', '2.0.1');
3435

3536
add_action('gform_loaded', array('GF_Paystack_Bootstrap', 'load'), 5);
3637

readme.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ Contributors: webong, paystack
33
Donate link: https://paystack.com/demo
44
Tags: payments, subscriptions, gravityforms
55
Requires at least: 5.1
6-
Tested up to: 5.9
6+
7+
Tested up to: 6.2
78
Requires PHP: 7.2 and higher
8-
Stable tag: 2.0.0
9+
Stable tag: 2.0.1
10+
911
License: GPLv2 or later
1012
License 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

0 commit comments

Comments
 (0)