tlwiki
: Check git repo for relevant changes before auto-deploying #5
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Before performing an automatic
tlwiki deploy
ongit push
, the script should ask the git repo if there are any changes in relevant places that would require a rebuild of the site. Otherwise, skip the rebuild/deploy and just push the repo.Relevant dirs/files:
content/
static/
themes/
config.toml
Ideally, this should allow one to push changes that don't affect content without needlessly rebuilding and deploying the site (such as docs, configs, dev scripts, etc)
Should definitely have this running through the argv-parsing logic:
ad88e5c998/tlwiki (L29)
Probably worth changing the entire script over to using GitPython while I'm at it...
https://gitpython.readthedocs.io/en/stable/