From 3be585cf7438ef4c919d41565efe1290c7809a21 Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 18:30:32 -0400 Subject: [PATCH 01/13] Added publish workflow --- .github/workflows/publish.yaml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..0126e1c --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,37 @@ +# This file represents 1 workflow. A workflow has multiple jobs. A job has multiple tasks. +name: Publish PDF + +# This workflow runs every push +on: push + +# If you'd like it only to run on certain branches: +# on: +# push: +# branches: [main, dev] +# pull_request: +# branches: [staging, prod] + +# Jobs are run in parallel +jobs: + # This is our one and only job + test: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch + - name: Tectonic Publish + uses: wtfjoke/setup-tectonic@v3 + run: tectonic main.tex + - name: Rename PDF + run: mv main.pdf ${{ steps.extract_branch.outputs.branch }}.pdf + - name: Upload + uses: VAllens/gitea-publish-generic-packages@v1 + env: + NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 + with: + files: |- + ${{ steps.extract_branch.outputs.branch }}.pdf + -- 2.47.2 From e46188f695c4a50981883362fdc42352a5e436b1 Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 18:33:12 -0400 Subject: [PATCH 02/13] CI update --- .github/workflows/publish.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0126e1c..05b0801 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -14,7 +14,7 @@ on: push # Jobs are run in parallel jobs: # This is our one and only job - test: + publish: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 @@ -22,8 +22,9 @@ jobs: shell: bash run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT id: extract_branch - - name: Tectonic Publish + - name: Setup tectonic uses: wtfjoke/setup-tectonic@v3 + - name: Compile latex run: tectonic main.tex - name: Rename PDF run: mv main.pdf ${{ steps.extract_branch.outputs.branch }}.pdf -- 2.47.2 From 242292f578be321e957c3cf674d6a620884e076e Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 18:41:26 -0400 Subject: [PATCH 03/13] Switched to direct tectonic download --- .github/workflows/publish.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 05b0801..f038855 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -23,7 +23,10 @@ jobs: run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT id: extract_branch - name: Setup tectonic - uses: wtfjoke/setup-tectonic@v3 + # uses: wtfjoke/setup-tectonic@v3 + run: | + apt -y install curl + curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh - name: Compile latex run: tectonic main.tex - name: Rename PDF -- 2.47.2 From 4d48640bb9e5a7473690b5fd801443a5da0a950d Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 18:42:22 -0400 Subject: [PATCH 04/13] Change to local tectonic --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f038855..1379426 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -28,7 +28,7 @@ jobs: apt -y install curl curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh - name: Compile latex - run: tectonic main.tex + run: ./tectonic main.tex - name: Rename PDF run: mv main.pdf ${{ steps.extract_branch.outputs.branch }}.pdf - name: Upload -- 2.47.2 From 8591e4a09b25be25e0b2804b71711c87f555b815 Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 18:45:17 -0400 Subject: [PATCH 05/13] Changed gitignore to not exclude footer.pdf --- .github/workflows/publish.yaml | 1 - .gitignore | 2 +- img/footerscroll.pdf | Bin 0 -> 2369 bytes 3 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 img/footerscroll.pdf diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 1379426..7d853ac 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -23,7 +23,6 @@ jobs: run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT id: extract_branch - name: Setup tectonic - # uses: wtfjoke/setup-tectonic@v3 run: | apt -y install curl curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh diff --git a/.gitignore b/.gitignore index 0d4c3bb..d27c4c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -*.pdf +main.pdf *~ diff --git a/img/footerscroll.pdf b/img/footerscroll.pdf new file mode 100644 index 0000000000000000000000000000000000000000..3ea25bf5bc36724c6f65efd9451779207f96f634 GIT binary patch literal 2369 zcma);3pAAZ8^;YAjO)yz*^rlp#$}Cnmg zOXV_2a#x9sic~}tS}K)mY3-zTNS!^W^Z%cH&wGB?_kGUuobUJj{9YX=3iT(@2nW-t zeOoDnnF7W@fR`_fL;^57nEr=(EC453+6@B$07GT_@t8rP-jBg!QkaJVyqPdE8OG%W zF&P|KXdcsTd#VOOZuo;94`QILH^og>*J1(p#_wt`E<^U5`8#E^G!%(jLe1?l?6SZ4 zjBvB{Y1eY#^6}aRpYB@wi`>SEcG}hEeHhD@9LrC>6T%*YLvCrVUJu!BWP57AgKbr# ze7su)Qzq|#Qg}b3hAz0;EpJ;jDb(K>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MWug`hfRJ#}}6Jrcegod~;q>nxxS$?ErLxOY$?xyN%a4gX&Mv-QaG zN#v*S<*;RO3j>q@#`O1I1EpxRg4h+VuJj_Zf+nEx$^$D?lWzoGWv*=~kLJu1@fIMF zRu)7ThG8t40GO@T00>|XF+{D1!lDgPE4tU>5Wd9$FfL(7nE=Mo%h#F5S&h1ecH%d* zI{@J729+JeRXxhpvhdrUeT$_!X+6ScHN@idbvWR3>j#yN zy!Bnext6Ax<1ykg=m_-!W%TtZ2optbqq41>|JXQRhz7#UaEJ_C)$j6RK$we^tOwny zFgiSLvY|qwmu~)6x##0{ucXh)__9NAKjGq^@84>8V#V7HK16wGRn)vJI$~Z^dq2+2 zPU75X7poA|=#;xr%uUHhZKE07%q>RX`%4mwo+h6jW@lAQDH;%eEe(V=COPB_a^6(p z><470QPD{F{>UEWAneu8XEb4YtO#$;U4KjU)60vUO<#*?1E&!E^VsVX6q?i(Yu`|gnx%anv`PH%J~NkvlxGulh|Bx$ktp52 z<@8PUOE;Z)hvi1uj2(NSdNTIptI6Rx#{>B{#~yhyUsvTUin+EfV9%(1ukxx`YciXd zntjz7{A%wNr+)FD`);Pss(x$k!~buat+?EoeT)f!U*z8dcz^&Fz#dqAe|JCtPxQ@v zGs!l8p8x>FuFn7cKXQmp|Lb!>LPTZ+gi>vM*} Date: Mon, 10 Mar 2025 18:48:22 -0400 Subject: [PATCH 06/13] Added cache and token --- .github/workflows/publish.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7d853ac..80cefbd 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -26,6 +26,13 @@ jobs: run: | apt -y install curl curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh + - uses: actions/cache@v3 + name: Tectonic Cache + with: + path: ~/.cache/Tectonic + key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }} + restore-keys: | + ${{ runner.os }}-tectonic- - name: Compile latex run: ./tectonic main.tex - name: Rename PDF @@ -35,6 +42,7 @@ jobs: env: NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 with: + token: ${{ github.token }} files: |- ${{ steps.extract_branch.outputs.branch }}.pdf -- 2.47.2 From 8633146a81448081f147d729478bc1e652232f7f Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 18:55:46 -0400 Subject: [PATCH 07/13] Added token secret --- .github/workflows/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 80cefbd..b5134da 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -27,7 +27,7 @@ jobs: apt -y install curl curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh - uses: actions/cache@v3 - name: Tectonic Cache + name: Tectonic cache with: path: ~/.cache/Tectonic key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }} @@ -42,7 +42,7 @@ jobs: env: NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 with: - token: ${{ github.token }} + token: ${{ token }} files: |- ${{ steps.extract_branch.outputs.branch }}.pdf -- 2.47.2 From 76648fb99e61be9abcd72c9385b8fcac23ceb62c Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 18:57:34 -0400 Subject: [PATCH 08/13] Updted secret --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b5134da..8482bb5 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -42,7 +42,7 @@ jobs: env: NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 with: - token: ${{ token }} + token: ${{ secrets.token }} files: |- ${{ steps.extract_branch.outputs.branch }}.pdf -- 2.47.2 From 706a5d8b7a24d21feae9c135f590a93049a031f9 Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 19:19:19 -0400 Subject: [PATCH 09/13] move cache step to bottom --- .github/workflows/publish.yaml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 8482bb5..f3391cb 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,19 +1,8 @@ -# This file represents 1 workflow. A workflow has multiple jobs. A job has multiple tasks. name: Publish PDF -# This workflow runs every push on: push -# If you'd like it only to run on certain branches: -# on: -# push: -# branches: [main, dev] -# pull_request: -# branches: [staging, prod] - -# Jobs are run in parallel jobs: - # This is our one and only job publish: runs-on: ubuntu-22.04 steps: @@ -26,13 +15,6 @@ jobs: run: | apt -y install curl curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh - - uses: actions/cache@v3 - name: Tectonic cache - with: - path: ~/.cache/Tectonic - key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }} - restore-keys: | - ${{ runner.os }}-tectonic- - name: Compile latex run: ./tectonic main.tex - name: Rename PDF @@ -45,4 +27,11 @@ jobs: token: ${{ secrets.token }} files: |- ${{ steps.extract_branch.outputs.branch }}.pdf + - uses: actions/cache@v3 + name: Tectonic cache + with: + path: ~/.cache/Tectonic + key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }} + restore-keys: | + ${{ runner.os }}-tectonic- -- 2.47.2 From e6b2688458b9521fef1d4334e2d258d444e3c09f Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 19:26:39 -0400 Subject: [PATCH 10/13] Added cache restore --- .github/workflows/publish.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f3391cb..5d101ff 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -15,6 +15,12 @@ jobs: run: | apt -y install curl curl --proto '=https' --tlsv1.2 -fsSL https://drop-sh.fullyjustified.net |sh + - name: Restore cache + id: cache-restore + uses: actions/cache/restore@v4 + with: + path: ~/.cache/Tectonic + key: ${{ runner.os }}-tectonic- - name: Compile latex run: ./tectonic main.tex - name: Rename PDF @@ -32,6 +38,4 @@ jobs: with: path: ~/.cache/Tectonic key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }} - restore-keys: | - ${{ runner.os }}-tectonic- -- 2.47.2 From eab3859a6da23372016b5d96c45d21d7c13d448a Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 19:27:50 -0400 Subject: [PATCH 11/13] type-o --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 5d101ff..b146a2d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -20,7 +20,7 @@ jobs: uses: actions/cache/restore@v4 with: path: ~/.cache/Tectonic - key: ${{ runner.os }}-tectonic- + key: ${{ runner.os }}-tectonic- - name: Compile latex run: ./tectonic main.tex - name: Rename PDF -- 2.47.2 From ef474a5489cc82c3a08c2ed0165aba07e715b86f Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 19:36:31 -0400 Subject: [PATCH 12/13] changed version to sha --- .github/workflows/publish.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index b146a2d..3f48fd1 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -31,6 +31,7 @@ jobs: NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 with: token: ${{ secrets.token }} + package_version: {{ github.sha }} files: |- ${{ steps.extract_branch.outputs.branch }}.pdf - uses: actions/cache@v3 -- 2.47.2 From d9acfb757dd41ee288f92a6d9b8ebcce56fb55e3 Mon Sep 17 00:00:00 2001 From: Joe bellus Date: Mon, 10 Mar 2025 19:39:15 -0400 Subject: [PATCH 13/13] typo in sha --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3f48fd1..0103898 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -31,7 +31,7 @@ jobs: NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18 with: token: ${{ secrets.token }} - package_version: {{ github.sha }} + package_version: ${{ github.sha }} files: |- ${{ steps.extract_branch.outputs.branch }}.pdf - uses: actions/cache@v3 -- 2.47.2