GitHub Action to install Mark, the Markdown publishing tool, and optional dependencies.
steps:
- uses: actions/checkout@v4
- uses: accuser/setup-mark@v1steps:
- uses: actions/checkout@v4
- uses: accuser/setup-mark@v1
with:
python: true # for code execution
python-version: "3.12"
typst: true # for PDF output
pagefind: true # for search indexing| Input | Default | Description |
|---|---|---|
mark-version |
latest |
Mark version (latest or a specific version like 0.3.0) |
python |
false |
Install Python with jupyter_client and ipykernel |
python-version |
3.12 |
Python version (when python: true) |
typst |
false |
Install Typst for PDF output |
pagefind |
false |
Install Pagefind for search indexing |
| Output | Description |
|---|---|
mark-version |
The resolved version that was installed |
Pin to a major version for automatic compatible updates:
- uses: accuser/setup-mark@v1Pin to a specific version for reproducibility:
- uses: accuser/setup-mark@v1.0.0See the examples/ directory for complete workflow files:
simple-website.yml— website with GitHub Pagesbook-with-code.yml— book with Python code and PDFpr-preview.yml— PR deploy previews with Netlify
MIT