This action enables publishing MyST content to a Curvenote site. A Curvenote account is required, and you must set your Curvenote API token as a github repository secret named CURVENOTE_TOKEN
.
You also need a myst.yml
file with your site configuration:
myst: v1
...
site:
template: book-theme
projects:
- slug: myst
path: .
domains:
- username-myst_project.curve.space
name: deploy-myst-site
on:
push:
branches:
- main
permissions:
contents: read
pull-requests: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy 🚀
uses: curvenote/action-myst-publish@v1
env:
CURVENOTE_TOKEN: ${{ secrets.CURVENOTE_TOKEN }}
name: deploy-myst-site-preview
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
permissions:
contents: read
pull-requests: write
jobs:
build-and-deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Deploy 🚀
uses: curvenote/action-myst-publish@v1
env:
CURVENOTE_TOKEN: ${{ secrets.CURVENOTE_TOKEN }}
with:
preview: true
preview_subdomain: username-myst_preview
The preview_subdomain
must be prefixed with your Curvenote username followed by a hyphen; the rest of the subdomain may have letters, numbers, or underscores. Preview domains will be automatically suffixed with pull request number.