wp2static/publish_release.sh
Leon 016dba057b rel 1.2.2
Former-commit-id: d65763fb31
2017-03-11 21:33:36 +13:00

34 lines
694 B
Bash
Executable file

#!/bin/bash
PROJECT_ROOT=$(pwd)
SVN_ROOT=/home/leon/svnplugindir
NEW_TAG=1.2.2
# run from project root
# copy all files to svn trunk
cp -r $PROJECT_ROOT/* $SVN_ROOT/trunk/
# remove files only used in development
rm $SVN_ROOT/trunk/*.sh
rm $SVN_ROOT/trunk/*.ini
rm $SVN_ROOT/trunk/Dockerfile
rm $SVN_ROOT/trunk/readme.md
rm -r $SVN_ROOT/trunk/wpassets
# image assets (for WP official pages) need to go into /assets, not /trunk
cp -r $PROJECT_ROOT/wpassets/* $SVN_ROOT/assets/
cd $SVN_ROOT
# tell svn to add the files
svn add trunk/*
# svn commit trunk
svn ci -m "adding files for release $NEW_TAG"
# svn create tag
svn cp trunk tags/$NEW_TAG
# push tag up
svn ci -m "new tag $NEW_TAG"