Continous Integration
Some checks failed
Publish PDF / publish (push) Failing after 15s

Setup continuous integration pipeline. Gitea pipeline will build a
rendered PDF on push and publish it to the organizations package
repository. This will be packaged with the name using the branch name
and the version using the git commit sha.
This commit is contained in:
Joe bellus 2025-03-10 21:13:12 -04:00
parent 7b33fef50e
commit 207c8f7549
3 changed files with 43 additions and 1 deletions

42
.github/workflows/publish.yaml vendored Normal file
View File

@ -0,0 +1,42 @@
name: Publish PDF
on: push
jobs:
publish:
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: Setup tectonic
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
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:
token: ${{ secrets.token }}
package_version: ${{ github.sha }}
files: |-
${{ steps.extract_branch.outputs.branch }}.pdf
- uses: actions/cache@v3
name: Tectonic cache
with:
path: ~/.cache/Tectonic
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
*.pdf
main.pdf
*~

BIN
img/footerscroll.pdf Normal file

Binary file not shown.