test #5
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-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 | |
volumes: | |
- ${{ github.workspace }}/ts-latex-lib:/ts-latex-lib | |
- ${{ github.workspace }}/doc:/doc | |
steps: | |
- name: Compile docs | |
id: compile-docs | |
run: | | |
export TEXINPUTS=.:/ts-latex-lib//: | |
export PATH=$PATH:/tropic/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 |