Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

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 2026

For 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

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:

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.