The goal here is to have a script of some kind that lets you "deploy" your WordPress theme to GitHub, and the auto-updater plugin that supports GitHub will then pull the latest tagged release on your master branch onto your website.
We want to try replacing FTP-based methods for deployment, while having a record of each deployment to our sites. Presumably, this would be more useful for the "staging" site. On the production site, you might want to update the theme in a more manual (and less frequent) fashion.
I am theorizing that we want to increment a global variable in functions.php
Need to include all code from the develop
(or other) branch that is normally ignored.
This includes things like compiled CSS, JS, and so forth.
It should be set up to automatically let the master
branch win if there are conflicts.
This may happen with the merge anyway. Be sure to write a good message.
The tagged commit will be picked up by the updater. Can this match the "release notes?"
You might also have it auto-update.
You will need the github-updater plugin to be installed and configured.
You leave your changes on master
, they should never be merged back in to where you're working.