2020-06-13 13:51:06 +00:00
|
|
|
# https://github.com/marketplace/actions/create-pdf-and-html
|
2020-06-11 09:20:06 +00:00
|
|
|
on: [push]
|
|
|
|
|
2020-06-13 13:51:06 +00:00
|
|
|
name: Docs to PDF
|
|
|
|
# This workflow is triggered on pushes to the repository.
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-06-11 09:20:06 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-06-13 13:51:06 +00:00
|
|
|
converttopdf:
|
|
|
|
name: Build PDF
|
2020-06-11 09:20:06 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-06-13 13:51:06 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: baileyjm02/markdown-to-pdf@master
|
|
|
|
with:
|
|
|
|
input_dir: ./
|
|
|
|
output_dir: pdf
|
|
|
|
#images_dir: docs/images
|
|
|
|
# for example <img src="./images/file-name.png">
|
|
|
|
#images_path: ./images
|
|
|
|
# Default is true, can set to false to only get PDF files
|
|
|
|
build_html: true
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: docs
|
|
|
|
path: pdfs
|