Skip to content

Commit

Permalink
2.0.32.0.32.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Jun 4, 2019
1 parent 4238274 commit b4b7f3b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"buildCommand": "bash ./bin/create-release.sh ${version}",
"github": {
"release": true
},
"npm": {
"publish": false
}
}
18 changes: 18 additions & 0 deletions bin/create-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -e

if [ $# -lt 1 ]; then
echo "usage: $0 <version>"
exit 1
fi

version=$1

if [ ! `echo $version | grep -e 'alpha' -e 'beta' -e 'RC' -e 'rc'` ] ; then
sed -i '' -e "s/^Stable tag: .*/Stable tag: ${version}/g" readme.txt;
fi


sed -i '' -e "s/^ \* Version: .*/ * Version: ${version}/g" simple-post-type-permalinks.php;
sed -i '' -e "s/^ \* @version .*/ * @version ${version}/g" simple-post-type-permalinks.php;
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: Toro_Unit, inc2734
Donate link: http://www.amazon.co.jp/registry/wishlist/COKSXS25MVQV
Tags: permalink,permalinks,custom post type,cms
Requires at least: 4.0
Tested up to: 4.9
Tested up to: 5.2
Requires PHP: 5.3
Stable tag: 2.0.3
Stable tag: 2.0.3
License: GPLv2 or Later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down
2 changes: 1 addition & 1 deletion simple-post-type-permalinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Plugin Name: Simple Post Type Permalinks
* Plugin URI: https://github.com/torounit/simple-post-type-permalinks
* Description: Easy to change Permalink of custom post type.
* Version: 2.0.3
* Version: 2.0.3
* Author: Toro_Unit
* Author URI: https://torounit.com
* License: GPLv2 or Later
Expand Down

0 comments on commit b4b7f3b

Please sign in to comment.