tlwiki: Check git repo for relevant changes before auto-deploying #5

Open
opened 2021-11-21 22:55:35 +00:00 by thurstylark · 2 comments
Owner

Before performing an automatic tlwiki deploy on git 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)

Before performing an automatic `tlwiki deploy` on `git 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)
Author
Owner

Should definitely have this running through the argv-parsing logic: ad88e5c998/tlwiki (L29)

Should definitely have this running through the argv-parsing logic: https://git.thurstylark.com/thurstylark/tlwiki/src/commit/ad88e5c998767b7b841c76b0a059642e6dd6698d/tlwiki#L29
Author
Owner

Probably worth changing the entire script over to using GitPython while I'm at it...

https://gitpython.readthedocs.io/en/stable/

Probably worth changing the entire script over to using GitPython while I'm at it... https://gitpython.readthedocs.io/en/stable/
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: thurstylark/tlwiki#5
No description provided.