From acb8cd01d56af01037a10bfd9603a7e7032b4bc9 Mon Sep 17 00:00:00 2001 From: Ian Cornelius Date: Sun, 11 Feb 2024 15:40:30 -0600 Subject: [PATCH] create GitHub action update file paths and metadata for production --- .github/workflows/action.yaml | 48 ++++++++++++++++++++ build.sh | 11 +++++ config/pandoc-metadata.yaml | 10 +++++ zetteln/frame-0000-20240101165940.md | 66 ++++++++++------------------ zetteln/frame-0002-20240110165851.md | 47 ++++++++------------ 5 files changed, 111 insertions(+), 71 deletions(-) create mode 100644 .github/workflows/action.yaml create mode 100755 build.sh create mode 100644 config/pandoc-metadata.yaml diff --git a/.github/workflows/action.yaml b/.github/workflows/action.yaml new file mode 100644 index 0000000..d05d437 --- /dev/null +++ b/.github/workflows/action.yaml @@ -0,0 +1,48 @@ +name: Deploy active syllabi + +on: + push: + branches: main + tags: + - v* +jobs: + deploy: + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v3 + + - name: Working directory check + run: | + pwd + ls + + - name: Install Pandoc + uses: r-lib/actions/setup-pandoc@v2 + + - name: Install XeLaTeX + run: sudo apt-get install -y texlive-xetex + + - name: Download lua-filter + run: wget https://raw.githubusercontent.com/pandoc/lua-filters/master/include-files/include-files.lua + + - name: Verify dependencies + run: | + pandoc --version + xetex --version + ls include-files.lua + + - name: Build + run: bash build.sh + + - name: Check for Resulting PDF + run: | + ls build/*.pdf + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + build/*.pdf diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..54e461b --- /dev/null +++ b/build.sh @@ -0,0 +1,11 @@ +if [ ! -e build/ ] ; then + mkdir build/ +fi + +pandoc --metadata-file config/pandoc-metadata.yaml --lua-filter include-files.lua --citeproc --number-sections \ + zetteln/frame-0000-20240101165940.md \ + -o build/engl321-2024-spring.pdf + +pandoc --metadata-file config/pandoc-metadata.yaml --lua-filter include-files.lua --citeproc --number-sections \ + zetteln/frame-0002-20240110165851.md \ + -o build/engl441-2024-spring.pdf diff --git a/config/pandoc-metadata.yaml b/config/pandoc-metadata.yaml new file mode 100644 index 0000000..4bf4814 --- /dev/null +++ b/config/pandoc-metadata.yaml @@ -0,0 +1,10 @@ +--- +geometry: margin=1in +fontsize: 12pt +colorlinks: True +link-citations: True +toc: True +csl: config/modern-language-association.csl +suppress-bibliography: # true +include-auto: True +--- diff --git a/zetteln/frame-0000-20240101165940.md b/zetteln/frame-0000-20240101165940.md index f778076..15eb877 100644 --- a/zetteln/frame-0000-20240101165940.md +++ b/zetteln/frame-0000-20240101165940.md @@ -9,131 +9,120 @@ tags: title: Introduction to Old English author: Ian Cornelius date: Spring 2024 -geometry: margin=1in -fontsize: 12pt -colorlinks: true -link-citations: true -toc: true -csl: ../../styles/modern-language-association.csl -bibliography: ../bibliographies/Intro-OE-spring-2024.yaml -suppress-bibliography: # true +bibliography: bibliographies/Intro-OE-spring-2024.yaml --- - - \newpage # Basic information ## Course details ``` {.include} -course_id-0006-20240101160001.md +zetteln/course_id-0006-20240101160001.md ``` ## How to contact me ``` {.include} -course_id-0004-20230107090154.md +zetteln/course_id-0004-20230107090154.md ``` # Course description ``` {.include} -course_desc-0003-20231012212315.md +zetteln/course_desc-0003-20231012212315.md ``` # Schedule ``` {.include} -schedule-0005-20240110143330.md -schedule-0003-20240101164433.md +zetteln/schedule-0005-20240110143330.md +zetteln/schedule-0003-20240101164433.md ``` # Assessment ## Summary of grade components ``` {.include} -assessment-0005-20240101180521.md +zetteln/assessment-0005-20240101180521.md ``` ## Description of components ### Participation ``` {.include} -assignments-0030-20240101183814.md +zetteln/assignments-0030-20240101183814.md ``` ### Class presentation ``` {.include} -assignments-0033-20240101210729.md +zetteln/assignments-0033-20240101210729.md ``` ### Note collection ``` {.include} -assignments-0032-20240101202151.md +zetteln/assignments-0032-20240101202151.md ``` ### Quizzes ``` {.include} -assignments-0031-20240101185011.md +zetteln/assignments-0031-20240101185011.md ``` ### Exams ``` {.include} -assignments-0029-20240101182234.md +zetteln/assignments-0029-20240101182234.md ``` ## Grade schema ``` {.include} -assessment-0002-20220818165633.md +zetteln/assessment-0002-20220818165633.md ``` # Policies ## Attendance ``` {.include} -policies-0000-20220818144137.md +zetteln/policies-0000-20220818144137.md ``` ## Texts ``` {.include} -texts-0004-20240110164204.md +zetteln/texts-0004-20240110164204.md ``` ## Communication ``` {.include} -policies-0007-20220818163137.md +zetteln/policies-0007-20220818163137.md ``` ## Diversity, inclusion, and equity ``` {.include} -policies-0008-20220818163739.md +zetteln/policies-0008-20220818163739.md ``` ## Academic integrity ``` {.include} -policies-0004-20220818161423.md +zetteln/policies-0004-20220818161423.md ``` ## Late work ``` {.include} -policies-0011-20230107104207.md +zetteln/policies-0011-20230107104207.md ``` ## Extra credit ``` {.include} -policies-0010-20221105180224.md +zetteln/policies-0010-20221105180224.md ``` ## Accommodations and assistance ``` {.include} -policies-0009-20220818163938.md +zetteln/policies-0009-20220818163938.md ``` ## Privacy ``` {.include} -policies-0005-20220818161952.md +zetteln/policies-0005-20220818161952.md ``` ## Public health ``` {.include} -policies-0006-20220818162916.md +zetteln/policies-0006-20220818162916.md ``` ## Statement of intent @@ -144,14 +133,7 @@ Students will be informed of any changes to the syllabus. Last updated \today ``` {.include} -misc-0000-20220818164402.md -``` - - # Bibliography diff --git a/zetteln/frame-0002-20240110165851.md b/zetteln/frame-0002-20240110165851.md index 64ba1fb..be051e0 100644 --- a/zetteln/frame-0002-20240110165851.md +++ b/zetteln/frame-0002-20240110165851.md @@ -9,101 +9,90 @@ tags: title: Introduction to Old English author: Ian Cornelius date: Spring 2024 -geometry: margin=1in -fontsize: 12pt -colorlinks: true -link-citations: true -toc: true -csl: ../../styles/modern-language-association.csl -bibliography: ../bibliographies/Intro-OE-spring-2024.yaml -suppress-bibliography: # true +bibliography: bibliographies/Intro-OE-spring-2024.yaml --- - - \newpage # Basic information ## Course details ``` {.include} -course_id-0007-20240101160310.md +zetteln/course_id-0007-20240101160310.md ``` ## How to contact me ``` {.include} -course_id-0004-20230107090154.md +zetteln/course_id-0004-20230107090154.md ``` # Course description ``` {.include} -course_desc-0003-20231012212315.md +zetteln/course_desc-0003-20231012212315.md ``` # Schedule ``` {.include} -schedule-0005-20240110143330.md -schedule-0006-20240111081011.md +zetteln/schedule-0005-20240110143330.md +zetteln/schedule-0006-20240111081011.md ``` # Assessment ## Summary of grade components ``` {.include} -assessment-0007-20240110171723.md +zetteln/assessment-0007-20240110171723.md ``` ## Description of components ### Class presentation ``` {.include} -assignments-0033-20240101210729.md +zetteln/assignments-0033-20240101210729.md ``` ### Note collection ``` {.include} -assignments-0032-20240101202151.md +zetteln/assignments-0032-20240101202151.md ``` ### Quizzes ``` {.include} -assignments-0031-20240101185011.md +zetteln/assignments-0031-20240101185011.md ``` ### Exams ``` {.include} -assignments-0029-20240101182234.md +zetteln/assignments-0029-20240101182234.md ``` ## Grade schema ``` {.include} -assessment-0002-20220818165633.md +zetteln/assessment-0002-20220818165633.md ``` # Policies ## Attendance ``` {.include} -policies-0000-20220818144137.md +zetteln/policies-0000-20220818144137.md ``` ## Texts ``` {.include} -texts-0004-20240110164204.md +zetteln/texts-0004-20240110164204.md ``` ## Diversity, inclusion, and equity ``` {.include} -policies-0008-20220818163739.md +zetteln/policies-0008-20220818163739.md ``` ## Academic integrity ``` {.include} -policies-0004-20220818161423.md +zetteln/policies-0004-20220818161423.md ``` ## Public health ``` {.include} -policies-0006-20220818162916.md +zetteln/policies-0006-20220818162916.md ``` ## Statement of intent @@ -114,7 +103,7 @@ Students will be informed of any changes to the syllabus. Last updated \today ``` {.include} -misc-0000-20220818164402.md +zetteln/misc-0000-20220818164402.md ``` # Bibliography