include assets folder #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
- 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: | | |