- Generate a key pair for GitLab Sync:
ssh-keygen -t ed25519 -C "gitlab sync" -f id_ed25519
- GitLab: Create a new repository in GitLab with the same name.
- GitLab: Add the pub key to GitLab as the deploy key with the write permission.
- Visit https://github.com/doitian/tiddlywiki-template.
- Create a new repository from the template.
- Enable the GitHub Pages feature.
- Add the private key as the secret
DEPLOY_KEY
in GitHub. - Add the output of
ssh-keygen -t ed25519 -C "gitlab sync" -f id_ed25519
as the secretKNOWN_HOSTS
. - Rerun GitHub Actions.
- GitLab: Allow push to the protected branch.
- GitHub: Grant personal token access to the new repository.