Skip to content

Commit

Permalink
ci(release.yml): LaTeX build & release
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiphereth-A committed Oct 20, 2023
1 parent 95adca7 commit 43f9ca6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build & Relase LaTeX document

on:
workflow_dispatch:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- name: Build the LaTeX document
uses: xu-cheng/latex-action@v2
with:
latexmk_use_xelatex: true
latexmk_shell_escape: true
args: "-pdf -file-line-error -halt-on-error -interaction=nonstopmode -8bit"
pre_compile: |
wget -q -O fira.zip "https://github.com/mozilla/Fira/archive/refs/tags/4.106.zip"
wget -q -O firacode.zip "https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip"
unzip -q firacode.zip -d firacode
unzip -q fira.zip -d fira
for i in woff2 variable_ttf ttf; do cp -r firacode/$i /usr/share/fonts/$i; cp -r fira/$i /usr/share/fonts/$i; done
fc-cache -f
root_file: notebook.tex
- name: Create Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ github.token }}
file: "*.pdf"
tag: ${{ github.ref }}
file_glob: true

0 comments on commit 43f9ca6

Please sign in to comment.