This document describes how to set up GitHub for Notion to Jekyll.
In order to use Notion to Jekyll, you need to prepare Notion API key and Notion database ID. To do this, set up GitHub secrets.
Go to Settings
> Secrets and variables
> Actions
in your Jekyll repository.
Click the New repository secret
button in the picture above.
Enter the created Notion API key in Name
and enter the Notion API key in Secret
.
Click the New repository secret
button again.
You can check the database ID in the URL of the Notion database.
Enter the Notion database ID in Name
and enter the Notion database ID in Secret
.
In order to synchronize Notion posts to the repository, GitHub actions write permission is required.
Go to Settings
> Actions
> General
in your Jekyll repository.
Select Read and write permissions
and press Save
to save.
If you are ready, go to next to finish GitHub setting.