diff --git a/.release-it.json b/.release-it.json new file mode 100644 index 0000000..8c32a41 --- /dev/null +++ b/.release-it.json @@ -0,0 +1,9 @@ +{ + "buildCommand": "bash ./bin/create-release.sh ${version}", + "github": { + "release": true + }, + "npm": { + "publish": false + } +} diff --git a/bin/create-release.sh b/bin/create-release.sh new file mode 100644 index 0000000..4b93c0c --- /dev/null +++ b/bin/create-release.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -e + +if [ $# -lt 1 ]; then + echo "usage: $0 " + 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; diff --git a/readme.txt b/readme.txt index 98d2f35..2143541 100644 --- a/readme.txt +++ b/readme.txt @@ -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 diff --git a/simple-post-type-permalinks.php b/simple-post-type-permalinks.php index d60a38a..5ad8852 100644 --- a/simple-post-type-permalinks.php +++ b/simple-post-type-permalinks.php @@ -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