Skip to content

Latest commit

History

History
69 lines (51 loc) 路 1.55 KB

README.md

File metadata and controls

69 lines (51 loc) 路 1.55 KB

Build Re:VIEW GitHub Action

screenshot

View in GitHub Marketplace

This action build Re:VIEW files using opinionated-review and create the artifact with respective format.

Inputs

build

Optional Directory contains .re files and corresponding config files. default to articles.

dist

Optional Directory where generated artifacts goes to. default to dist.

format

Optional pdf, pdf-ebook, epub, kindle. default to pdf

theme

Optional Built-in theme name or path to theme directory. default to techbooster.

paperSize

Optional Output paper size. default to A5.

Usage

name: Build
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: vibranthq/build-review@v1
      - uses: actions/upload-artifact@master
        with:
          name: Artifacts
          path: ./dist

run with fine-grained settings:

name: Build
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: vibranthq/build-review@v1
        with:
          format: epub
          paperSize: B5
          build: ./src/articles
          theme: ./src/styles
          dist: ./generated
      - uses: actions/upload-artifact@master
        with:
          name: Artifacts
          path: ./generated