I found Quartz the other day and wanted to give it a try.
I wanted to keep my notes separate from the actual Quartz app code. If I switch the backend out someday, I don’t want application code cluttering my repo history.
In itspriddle/notes.priddle.xyz, I enabled GitHub Pages using Actions. I also set my domain name and configured DNS for it.
To build the site, GitHub Actions workflow is needed to set everything up and compile the site. I created .github/workflows/deploy.yml in itspriddle/notes.priddle.xyz:
With the workflow setup, every push on itspriddle/notes.priddle.xyz will trigger a build and deployment of the Quartz site.
I’m also hacking on Quartz itself. I wanted a quick way to have pushes to itspriddle/quartz trigger a deploy on itspriddle/notes.priddle.xyz.
For gh to be able to work on a remote repository, I had to setup a personal access token at https://github.com/settings/tokens?type=beta and save it as a repository secret with the name GH_TOKEN. I need to play around with permissions: in the workflow file to see if using a personal access token can be avoided — I don’t want to have to remember to reset the token.
More notes:
Ran git update-index --assume-unchanged content/.gitkeep and then ln -s ~/Sites/xyz.priddle.notes content on my local machine. That way when I’m playing with Quartz itself, it will have a copy of my notes present.
I added /content to .git/info/exclude to tell git to ignore the symlink.