Gallery Fake
is a GitHub Actions for sync markdown docs to Notion DB.
- Create Notion Integration.
- Set env
NOTION_API_TOKEN
,NOTION_DB_ID
,GITHUB_MD_PATH
in your GitHub repository.- https://github.com/<your>/<repository>/settings
- Create workflow yaml.
name: Sync markdown To Notion DB
on:
workflow_dispatch:
schedule:
- cron: "00 * * * *"
jobs:
sync:
name: Sync
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Gallery Fake
uses: litencatt/[email protected]
env:
NOTION_API_TOKEN: ${{ secrets.NOTION_API_TOKEN }}
NOTION_DB_ID: ${{ secrets.NOTION_DB_ID }}
GITHUB_MD_PATH: "path/to/sync_dir"
Set like this, if you sync ./example dir in your repository.
GITHUB_MD_PATH: "example"