Skip to content

Momentum TeX

Momentum TeX #2

name: generate-spec
on: pull_request
jobs:
build_documents:
name: build momentum netCDF document from source
runs-on: ubuntu-latest
steps:
# Check out PR
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update
sudo apt -yq install texlive texlive-latex-extra inkscape
- name: build content
run: |
export apath=./specifications/momentum
export SRC=$apath/Momentum-netCDF
export TEX=$SRC.tex
TEXINPUTS=$apath/: pdflatex -shell-escape -halt-on-error -interaction=nonstopmode -output-directory=$apath/publish $TEX
TEXINPUTS=$apath/: bibtex $SRC
TEXINPUTS=$apath/: pdflatex -output-directory=$apath -shell-escape $TEX
TEXINPUTS=$apath/: pdflatex -output-directory=$apath -shell-escape $TEX
# Upload artifact containing Momentum-netCDF.pdf
- name: Upload cf-conventions doc preview
uses: actions/upload-artifact@v2
with:
name: Momentum-netCDF.pdf
path: ./specifications/momentum/publish