Define props before using #57
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: Build | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- "v*.*.*" | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
name: Build | |
env: | |
TEXMFHOME: /home/runner/work/unnamed-emoji/unnamed-emoji/texmf/ | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@v3 | |
- name: Install TeX Live | |
uses: zauguin/install-texlive@v3 | |
with: | |
packages: > | |
context | |
iftex | |
infwarerr | |
latex | |
latex-bin | |
libertinus-fonts | |
ltxcmds | |
luatex85 | |
optex | |
pdftexcmds | |
plex | |
standalone | |
tex-gyre | |
tex-gyre-math | |
tools | |
- name: Build the documentation | |
run: | | |
export PATH=$HOME/texlive/bin/x86_64-linux:$PATH | |
sed -i '/registerfontmethod/,+4!b;{s/--/ /}' "$(kpsewhich lpdf-emb.lmt)" | |
mtxrun --generate > /dev/null | |
context --make > /dev/null | |
wget "https://raw.githubusercontent.com/gucci-on-fleek/lua-widow-control/master/docs/manual/lwc-manual.mkxl" | |
make manual | |
- name: Bundle the package | |
run: make bundle | |
- name: Archive on success | |
if: success() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build-result | |
retention-days: 7 | |
if-no-files-found: error | |
path: | | |
build/unnamed-emoji.tds.zip | |
documentation/unemoji-manual.pdf | |
- name: Create a release if this is a tag | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
fail_on_unmatched_files: true | |
files: | | |
texmf/doc/generic/unnamed-emoji/unnamed-emoji-manual.pdf | |
texmf/doc/generic/unnamed-emoji/unnamed-emoji-specimens.pdf | |
build/unnamed-emoji.ctan.zip | |
build/unnamed-emoji.tds.zip |