Skip to content

docascod/actions-build

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

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A github action for creating professional documents

This action creates documents(PDF) from markdown, reStructuredText or asciidoctor. Based on docsAsCode.

Inputs

sources

Required Location of source files in github repository. Default: repo´s root.

Environment variables

DEFAULT_DESTINATION

Location to output PDF files. Default: source dir

DEFAULT_OUTPUT

Output format for documents. Default: output.document

Example usage with result in artifact

on:
  push:
    paths: 
      - 'Example/*.md'
jobs:
  md2pdf:
    runs-on: ubuntu-latest
    name: A job to test this action
    env:
      DEFAULT_DESTINATION: 'Example/build/'
      DEFAULT_OUTPUT: output.slides,output.note
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Build
        uses: docascod/[email protected]
        with:
          sources: 'Example/*.md'
      - name: Publish
        uses: actions/upload-artifact@v2
        with:
          path: ${{ env.DEFAULT_DESTINATION }}/*.pdf

NOTE: upload-artifact action always compress result before upload.