Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](build): don't need input directory #120

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 3 additions & 15 deletions .github/workflows/pandoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,14 @@ jobs:
echo "::set-output name=smart_flag;--smart"
fi

- name: Build HTML
run: |
for f in markdown/*.md; do
FILE_NAME=$(basename "$f" | sed 's/.md//g')
pandoc --standalone \ # --include-in-header styles/chmduquesne.css \
--lua-filter=pdc-links-target-blank.lua \
--from markdown --to html \
--output output/${FILE_NAME}.html markdown/$f \
--metadata pagetitle=$FILE_NAME
git add output/${FILE_NAME}.html
done

- name: Build PDF
run: |
for f in markdown/*.md; do
FILE_NAME=$(basename "$f" | sed 's/.md//g')
pandoc --standalone \ # --template styles/chmduquesne.tex \
--from markdown --to context \
--variable papersize=letter \
--output output/${FILE_NAME}.tex markdown/$f
--output output/${FILE_NAME}.tex $f
mtxrun --path=output --result=${FILE_NAME}.pdf --script context ${FILE_NAME}.tex
git add ${FILE_NAME}.pdf
done
Expand All @@ -61,15 +49,15 @@ jobs:
run: |
for f in markdown/*.md; do
FILE_NAME=$(basename "$f" | sed 's/.md//g')
pandoc --standalone ${{ steps.version.outputs.smart_flag }} markdown/$f --output output/${FILE_NAME}.docx
pandoc --standalone ${{ steps.version.outputs.smart_flag }} $f --output output/${FILE_NAME}.docx
git add output/${FILE_NAME}.docx
done

- name: Build RTF
run: |
for f in markdown/*.md; do
FILE_NAME=$(basename "$f" | sed 's/.md//g')
pandoc --standalone ${{ steps.version.outputs.smart_flag }} markdown/$f --output output/${FILE_NAME}.rtf
pandoc --standalone ${{ steps.version.outputs.smart_flag }} $f --output output/${FILE_NAME}.rtf
git add output/${FILE_NAME}.rtf
done

Expand Down
Loading