-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from lbrealdev/pandoc-v1
Pandoc v1
- Loading branch information
Showing
3 changed files
with
62 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Pandoc - markdown to pdf | ||
run-name: pandoc python converter | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
markdown-source-dir: | ||
description: markdown input directory | ||
required: true | ||
type: string | ||
upload-artifact: | ||
description: upload or not | ||
required: false | ||
type: boolean | ||
|
||
jobs: | ||
md-to-pdf: | ||
name: Pandoc - markdown to pdf | ||
runs-on: ubuntu-latest | ||
container: | ||
image: pandoc/core:2.9 | ||
options: --cpus 1 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pypandoc | ||
run: | | ||
apk add python3 texmf-dist texlive | ||
python3 --version | ||
python3 -m pip install pypandoc | ||
- name: Python converter | ||
run: | | ||
python3 converter.py ${{ inputs.markdown-source-dir }} | ||
#- name: Run pandoc | ||
# run: | | ||
# pandoc README.md -o README.pdf | ||
|
||
- name: Upload artifacts | ||
if: inputs.upload-artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pdf | ||
path: test/_output | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters