Is it possible to deploy templates directly from GitHub to Blot?
What I've got so far...
- I've used Blot to 'Move to folder' - Blot created a folder .../Templates/index-copy/ and populated it with my existing tempates
- I've set up a GitHub repo (https://github.com/derivadow/tomscott.name/tree/main)
- The cloned local copy is .../Templates/index-copy/ which means that I can use GitHub for version control and push to .../Templates/index-copy/
- .../Templates/index-copy/ is within the sync'ed iCloud folder i.e. updates are pushed to Blot.
The above works.
But Blot isn't using .../Templates/index-copy/ as its source of templates e.g. I can push from GitHub to https://tomscott.name/Templates/index-copy/humans.txt but that isn't then referenced here: https://tomscott.name/humans.txt
Have I missed something or am I trying the impossible?
I went through this process not too long ago. We wanted version control in a way where we can have GitHub issues, PRs, etc. but still use Blot's Git repo as the sync method.
Here are the key parts I did to get this working for me, https://gist.github.com/maxinacube/b42646a843bec0be421f613451757cd7
There are 2 parts in this Gist, a .github/workflows/blot-deploy.yml action and an .rsyncignore file.
With this set-up any deploy to your main branch will trigger the action to sync your repo to Blot's Git repo, ignoring any files listed in the .rsyncignore