Skip to content

include assets folder #9

include assets folder

include assets folder #9

Workflow file for this run

name: LaTeX Build
on:
push:
paths:
- "*.tex"
- "*.ttf"
- ".github/workflows/*"
- "*.md"
- "**/*.md"
- "./assets/*"
jobs:
build:
runs-on: ubuntu-latest
container: thomasweise/docker-texlive-full
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install TexLive and other dependencies
run: |
make install
- name: Copy fonts and update font cache
run: |
cp -v *.ttf /usr/local/share/fonts
fc-cache -fv
- name: Build LaTeX files
run: |
make convert
make
- id: commit
uses: prompt/actions-commit-hash@v3
- name: Upload PDF artifacts
uses: actions/upload-artifact@v4
with:
name: pdf-files
path: |
*.pdf
- name: Release
uses: softprops/action-gh-release@v2 # in the future, try ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.commit.outputs.short }}
name: Release ${{ steps.commit.outputs.short }}
draft: false
prerelease: false
files: |
*.pdf