Skip to content

Commit

Permalink
Add Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Rabah committed Aug 26, 2024
1 parent 993258d commit 21f16e3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pandoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Generate pdf

on: push

jobs:
convert_via_pandoc:
runs-on: ubuntu
steps:
- uses: actions/checkout@v3

- name: create file list
id: files_list
run: |
echo "Lorem ipsum" > lorem_1.md # create two example files
echo "dolor sit amet" > lorem_2.md
mkdir output # create output dir
# this will also include README.md
echo "files=$(printf '"%s" ' *.md)" > $GITHUB_OUTPUT
- uses: docker://pandoc/latex:2.9
with:
args: --output=output/result.pdf ${{ steps.files_list.outputs.files }}

- uses: actions/upload-artifact@v3
with:
name: output
path: output

0 comments on commit 21f16e3

Please sign in to comment.