Move to tectonic for local and CI/CD
This commit is contained in:
parent
10eb8b14c4
commit
f62b26ddb2
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@ -3,7 +3,7 @@ name: Render LaTeX and Publish Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- "*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -15,15 +15,21 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install LaTeX
|
- uses: actions/cache@v3
|
||||||
run: |
|
name: Tectonic Cache
|
||||||
sudo apt-get update
|
with:
|
||||||
sudo apt-get install -y texlive-fonts-extra texlive-latex-base texlive-science texlive-latex-extra texlive-fonts-recommended latexmk texlive-luatex
|
path: ~/.cache/Tectonic
|
||||||
|
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-tectonic-
|
||||||
|
|
||||||
- name: Render LaTeX document
|
- uses: wtfjoke/setup-tectonic@v3
|
||||||
run: latexmk -pdflua cv.tex
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Run Tectonic
|
||||||
|
run: tectonic cv.tex
|
||||||
|
|
||||||
- name: release
|
- name: create Release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
id: create_release
|
id: create_release
|
||||||
with:
|
with:
|
||||||
@ -44,4 +50,3 @@ jobs:
|
|||||||
asset_path: ./cv.pdf
|
asset_path: ./cv.pdf
|
||||||
asset_name: cv.pdf
|
asset_name: cv.pdf
|
||||||
asset_content_type: application/pdf
|
asset_content_type: application/pdf
|
||||||
|
|
||||||
|
|||||||
7
Justfile
7
Justfile
@ -1,3 +1,6 @@
|
|||||||
|
test-act:
|
||||||
|
act -s GITHUB_TOKEN="$(gh auth token)" --container-architecture linux/amd64
|
||||||
|
|
||||||
release name:
|
release name:
|
||||||
git tag {{name}}
|
git tag {{name}}
|
||||||
git push origin --tags
|
git push origin --tags
|
||||||
@ -6,6 +9,4 @@ upload:
|
|||||||
scp main.pdf cosmos:infrastructure/caddy/files/cv.pdf
|
scp main.pdf cosmos:infrastructure/caddy/files/cv.pdf
|
||||||
|
|
||||||
build:
|
build:
|
||||||
latexmk -pdf main.tex
|
tectonic cv.tex
|
||||||
latexmk -c
|
|
||||||
|
|
||||||
|
|||||||
@ -4,3 +4,8 @@ My CV, for different applications slight alterations are made and releases cut w
|
|||||||
|
|
||||||
A hosted version can be found at <https://files.joshuacoles.me/cv.pdf>
|
A hosted version can be found at <https://files.joshuacoles.me/cv.pdf>
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
Currently the CV is built using [`tectonic`](https://tectonic-typesetting.github.io/en-US/) for a nicer build experience. This can be installed as described [here](https://tectonic-typesetting.github.io/en-US/install.html).
|
||||||
|
|
||||||
|
Commands are managed using the [Just runner](https://just.systems/).
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user