Create trigger to update book.oceaninfohub.org from master
Status as I see it now:
- there is a deploy-book GitHub action in this repo
- it is currently triggered when a new push/commit is made into the
publicationbranch (see yaml config) - however no updates to that
publicationbranch have been made since 6 months ago - meaning that https://book.oceaninfohub.org/ is 6 months old, lacking all of the changes in that timeframe - a simple change to the yaml could be made to have the book deployed whenever a commit is made to the
masterbranch, instead of thepublicationbranch - in the long run, we cannot rely on manual deploy-book/merges made into publication, instead, we should set this up that it runs on its own
cc @fils @pbuttigieg for thoughts on how to have this run automatically
As discussed, the published version should not be changed without review, but we do want to make that more rapid and automatic.
The solution is to use normative GH practice:
- changes that affect the book should only be made on a branch linked to an issue
- A PR should then be made and reviewed by the relevant parties (this will vary based on content, but I should have overview on all PRs at this stage).
- Once the PR is approved, it can be merged into the master branch
- That merge action - into the book directory of odis-arch master - should trigger the publish workflow
I think this will work.
I'm less sure on how the relationship with odis-in embeds works here. If they change, this may not be picked up by the process above.
This shoud be okay as long as editing on odis-in content is very disciplined and it remains a repo with low content variation in each of its directories
updates:
- added a new GitHub action that will merge
masterinto thepublicationbranch once a week, on Sundays (that then triggers a book rebuild) -
weekly-publish.yml
- we can easily change the schedule to daily or whatever we want
- we can also easily now run that action manually, through the
Actionsmenu above
Is this done?
yes, it is working well. Closing.
More explanation:
- now when a commit/push happens to
master, a merge happens automatically to thepublicationbranch, which triggers the Book to be rebuilt, and also theodis-insubmodule is updated in this repo automatically.