-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo "- No version is given. Use as ./release.sh 1.0.0"; | ||
exit 1 | ||
fi | ||
|
||
echo "- Clean up SVN"; | ||
rm -rf svn | ||
|
||
echo "- Checkout from SVN remote"; | ||
svn co http://plugins.svn.wordpress.org/wp-acf-nullify-gatsby/ svn | ||
|
||
echo "- Clean up SVN trunk"; | ||
rm -rf svn/trunk/* | ||
|
||
echo "- Copy latest code to SVN trunk"; | ||
cp -r src/* svn/trunk/ | ||
svn add svn/trunk/* | ||
|
||
echo "- Create new SVN tag"; | ||
svn cp svn/trunk "svn/tags/$1" | ||
|
||
echo "- Release to SVN remote"; | ||
cd svn/ | ||
svn ci -m "Release version $1" --username jabranr |