What I use to sync notes from Drafts.app as .md
files on GitHub. From Alexander Solovyov.
- Clone/copy
action.js
and edit config variables - Add in Drafts.app >
Actions
menu >Manage Actions
>Basic
>+
>Add Action
Add Steps
>Step Type
> SelectScript
(it's at the bottom of the list underAdvanced
) >+
- Click the script,
Import
, selectaction.js
- Optional but recommended: add a keyboard shortcut; mine is control S,
Save
- Get a personal access token with
repo
scopes - Run action from
Actions
menu, enter token at initial run
- Export to whatever directory (thanks Alexander)
- Use Drafts.app tags to automate publishing workflows
- Export to different repos/paths
- Add yaml/metadata e.g.
layout
,tags
, etc - Update
post-list
,archive
, etc