Skip to content

alDuncanson/md-press

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

md-press

Release Workflow Latest Release GitHub Marketplace License: GPL-3.0

Publish Markdown documents for free with md-press.

Quick start

name: Publish

on:
  push:
    branches: [main]

permissions:
  contents: read
  pages: write
  id-token: write

jobs:
  publish:
    runs-on: ubuntu-latest
    environment:
      name: github-pages
      url: ${{ steps.md-press.outputs.page_url }}
    steps:
      - uses: actions/checkout@v4
      - uses: alDuncanson/[email protected]
        id: md-press

Note

Your repository must have GitHub Pages enabled with GitHub Actions as the source. Go to Settings → Pages → Source → select "GitHub Actions".

This converts document.md into a PDF, an HTML page, and a preview image, then deploys everything to GitHub Pages.

See my resume for a single-document publishing example, or essays for a multi-document example.

Configuration

The defaults work for a single-document workflow, but md-press supports custom filenames, multi-file publishing, and PDF styling through YAML frontmatter.

See docs/configuration.md for the full reference.