Create convert-to-pdf.yml

pull/95/head
Steve Miller 2022-03-07 11:08:02 -05:00 zatwierdzone przez GitHub
rodzic e04b9bd74b
commit 7cf7585019
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 29 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,29 @@
name: Docs to PDF
# This workflow is triggered on pushes to the repository.
on:
push:
branches:
- main
# Paths can be used to only trigger actions when you have edited certain files, such as a file within the /pages directory
paths:
- 'pages/**'
jobs:
converttopdf:
name: Build PDF
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: baileyjm02/markdown-to-pdf@v1
with:
input_dir: pages
output_dir: pdfs
images_dir: pages
# for example <img src="./images/file-name.png">
# image_import: ./images
# Default is true, can set to false to only get PDF files
build_html: false
- uses: actions/upload-artifact@v1
with:
name: pages
path: pdfs