Skip to content

Commit

Permalink
add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
jabranr committed Mar 25, 2020
1 parent ad25f3e commit ed783ed
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions release.sh
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

0 comments on commit ed783ed

Please sign in to comment.