Add a paper
Each submission gets a repository of its own, created by an editor with oak bootstrap paper. The author works in that repository, and its workflows build, check and publish the paper with the journal’s settings. Draft deposits on Zenodo and live previews of pull requests need tokens, set when the repository is created (see Secrets).
Create the repository¶
For a new paper, starting from the starter manuscript:
oak bootstrap paper --repo <owner>/<paper-repo> \
--journal <owner>/<journal-repo> \
--edition 2026For a paper the author already wrote in a repository of their own:
oak bootstrap paper --repo <owner>/<paper-repo> \
--journal <owner>/<journal-repo> \
--edition 2026 \
--from https://github.com/<author>/<their-repo>--journal names the journal repository and --edition one of its editions, as named by a file in its editions/ folder. Both are required: they are written into the paper repository, and every build reads the journal’s settings through them.
On an organisation, add --owner @<org>/<team> so the editors team owns the repository’s workflows and settings (see Create a journal). On a personal account the owner is you.
As with the journal, oak prints a plan, including every default it took, and asks before changing anything. Running the same command again finishes a run that failed partway.
What it sets up¶
A public repository with the starter manuscript and the workflows that build and check it.
--privatemakes it private, but on GitHub’s free plan a private repository gets neither branch rules nor Pages, and the journal website cannot show it.Branch rules: changes to
mainneed a pull request that passes the Journal checks, merged by an editor. A pull request that changes a file listed inCODEOWNERS, such as a workflow, also needs a code owner’s approval. Only editors can create thev*tags that publish a version.--no-require-checksleaves the Journal checks out of the rule.GitHub Pages for the paper’s website, linked from the repository page.
Environments that keep each secret to the branch or tag that needs it:
zenodo-prepareandpreviewformain,zenodo-publishforv*tags.Permission for the workflows to open pull requests, which they use to write the paper’s DOI into
myst.yml.
Secrets¶
Two features use tokens, set on the paper repository’s environments, and both are optional: depositing on Zenodo from the workflows (ZENODO_TOKEN, ZENODO_TOKEN_SANDBOX), and a live preview link on each pull request (CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID). Secrets says what each one allows and where to create it.
Pass them to oak bootstrap paper as --zenodo-token, --zenodo-token-sandbox, --cf-token and --cf-account, or set the environment variables of the same names before running it. oak lists any that are still missing when it finishes, with the page to set them on.
The author’s first steps¶
oak bootstrap paper ends by listing what is left to do:
A new paper. The starter
myst.ymlstill has the placeholder id. The author fills inproject.id, in the shape the journal’sid_patternasks for, plus the title and the authors, in a pull request. Until the id is set, the Journal checks fail and the paper’s website is not deployed.A paper imported with
--from. The author’s files are copied onto a branch calledreview, with.github/andCODEOWNERSreplaced bymain’s, andoakopens a pull request from it. The author’s ownmyst.ymlreplaces the starter one, so the pull request has to add the engine version and edition underproject.options.oaktree-saplingbefore it builds; copy them frommyst.ymlonmain.
Authors work from a fork of the paper repository and open pull requests from it. Until someone has had a pull request merged, GitHub asks an editor to approve the workflow runs of each push to their pull requests, in the repository’s Actions tab. Members of the repository’s organisation are not asked. To give an author push access instead, oak prints the command; they can then push branches, but main still needs a pull request and only editors can create v* tags.
What the author sees is described in Your paper repository.