Skip to content

test

test #10

Workflow file for this run

name: build-docs
on:
push:
branches: ['master']
jobs:
# TODO: clone inside container
get-ts-latex-lib:
runs-on: ubuntu-22.04
steps:
- name: Clone ts-latex-lib
uses: actions/checkout@v3
with:
repository: 'tropicsquare/ts-latex-lib'
ref: 'refs/heads/master'
path: 'ts-latex-lib'
# TODO: replace personal token (go public)
token: ${{ secrets.PAT_SECRET }}
compile-docs:
runs-on: ubuntu-22.04
container:
# image: ghcr.io/xu-cheng/texlive-full:latest
image: alpine:latest
volumes:
- ${{ GITHUB.WORKSPACE }}/ts-latex-lib:/ts-latex-lib
- ${{ GITHUB.WORKSPACE }}/doc:/doc
steps:
- name: Compile docs
id: compile-docs
run: |
ls -al /ts-latex-lib
ls -al /ts-latex-lib/scripts
ls -al /doc
export TEXINPUTS=.:/ts-latex-lib//:
chmod +x /ts-latex-lib/scripts/ts_latex_build.py
export PATH=$PATH:/ts-latex-lib/scripts/
cd /doc
ts_latex_build.py --build-dir build_spect_programmer_guide /doc/programmer_guide/spect_programmer_guide.tex
ts_latex_build.py --build-dir build_isav0.1 /doc/ISAv0.1/isav0.1.tex
ts_latex_build.py --build-dir build_isav0.2 /doc/ISAv0.2/isav0.2.tex
- name: Upload docs
uses: actions/upload-artifact@v3
with:
name: spect_programmer_guide
path: build_spect_programmer_guide/pdf/spect_programmer_guide.pdf