2024-02-18 21:17:55 +00:00
|
|
|
name: Docs to HTML
|
2024-02-18 20:20:49 +00:00
|
|
|
# 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 /docs directory
|
|
|
|
paths:
|
2024-02-18 20:48:38 +00:00
|
|
|
- 'readme.md'
|
|
|
|
- 'media/**'
|
2024-02-18 20:20:49 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
converttopdf:
|
|
|
|
name: Build HTML
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-02-18 21:28:27 +00:00
|
|
|
- uses: actions/checkout@master
|
2024-02-18 21:17:55 +00:00
|
|
|
- uses: baileyjm02/markdown-to-pdf@v1.2.0
|
2024-02-18 20:20:49 +00:00
|
|
|
with:
|
|
|
|
input_dir: /
|
2024-02-18 20:59:43 +00:00
|
|
|
output_dir: html
|
2024-02-18 20:20:49 +00:00
|
|
|
images_dir: /media
|
|
|
|
# for example <img src="./images/file-name.png">
|
2024-02-18 21:19:40 +00:00
|
|
|
image_import: ./media
|
2024-02-18 20:20:49 +00:00
|
|
|
# Default is true, can set to false to only get PDF files
|
|
|
|
build_html: true
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2024-02-18 21:17:55 +00:00
|
|
|
name: website
|
2024-02-18 20:59:43 +00:00
|
|
|
path: html
|