# GitHub Actions

> Preview, check and submit from pull requests with Curvenote’s GitHub Actions

Source: https://curvenote.com/integrations/github-actions

- **Built by**: Curvenote
- **Availability**: Built in
- **Works with**: Curvenote SCMS, Curvenote CLI
- **Categories**: Automations, Authoring & formats
- **Documentation**: https://curvenote.com/docs/cli/automation/github-actions

## What Curvenote can do with a GitHub Actions integration

- **Previews on pull requests**: Every pull request gets a preview of the content, linked in a comment.
- **Checks before review**: Your site’s checks run on the pull request, with a report.
- **Submit on merge**: Each merge to main submits a new version, and can publish it.
- **Proceedings too**: One repository can hold many articles, each previewed and submitted by label.

## How it works with Curvenote

Curvenote publishes reusable GitHub workflows (curvenote/actions) that run the CLI for you. On each pull request they build a preview and run your site’s checks, and post both as a comment; on merge they submit a new version of the work, and can publish it.

One repository can hold one paper, or a folder of articles such as conference proceedings, with labels to preview, submit and publish each.

## Setting it up

1. Create an API token in your Curvenote settings and add it to the repository’s secrets.
2. Give the project a stable project.id in myst.yml, so every submit adds a version to the same submission.
3. Add the draft and submit workflows from curvenote/actions.
4. Open a pull request to see the preview and checks.

## Questions

### Does my coding agent know how to set this up?

Yes: the documentation includes a prompt you can give Claude Code, Codex or Cursor from the root of your repository.

### How does a submission know it’s the same work?

By the project.id in myst.yml: every submit with the same ID adds a new version.

## About GitHub Actions

GitHub Actions runs automated workflows in a repository; Curvenote publishes reusable ones for MyST content.
