toolstack / git-to-wp-plugin-dir-release-script

A release script that takes a git repo tag and pushes it to the WordPress Plugin directory SVN.
5 stars 2 forks source link

Allow to release a version to trunk #1

Closed ocean90 closed 8 years ago

ocean90 commented 8 years ago

Something like .release.sh trunk would be handy to only update the code in trunk.

toolstack commented 8 years ago

I was thinking along the same lines, maybe a release.sh install /path/to/plugin and release.sh update.

The install would create a /bin directory and put the .sh and .template file there, then commit them to git.

The update would grab the most current version from here and commit it.

ocean90 commented 8 years ago

Sorry I wasn't clear: I meant to update the source on plugin.svn without a SVN tag, instead push the source to trunk.

toolstack commented 8 years ago

Ah, ok, yea that makes sense too, should be easy to do as it's really just skipping the tagging at the end.

toolstack commented 8 years ago

If there's no SVN tag should it also ignore the git tag? Aka pull from "master" on the git side instead of a tag?

ocean90 commented 8 years ago

Maybe make it optional? For GlotPress' pre-releases I create tags on GitHub but not on plugins.svn.

toolstack commented 8 years ago

I was trying to avoid getting too fancy with the command line options, I'll have to think about how to handle it. At the moment the code does support "trunk" as a tag and pulls from "master".

toolstack commented 8 years ago

@ocean90 take a look at this branch and see what you think.

It's still rough and I haven't tested it much, but I think it's a better way to go.

toolstack commented 8 years ago

The current code base can now release to trunk and use other GIT tags as well.