helm-guide

An opinionated guide for the Helm system
git clone git://archive.git.mtrnord.blog/MTRNord/helm-guide.git
Log | Files | Refs | LICENSE

build.yaml (1883B)


      1 name: Build PDF
      2 
      3 on:
      4   workflow_dispatch:
      5   push:
      6     paths:
      7       - '**/*.tex'
      8       - '**/*.bib'
      9       - '**/*.mk4'
     10 
     11 jobs:
     12   build-pdf:
     13     runs-on: ubuntu-latest
     14     steps:
     15     - uses: actions/checkout@v4
     16     - name: Install texlive
     17       run: |
     18         cat /etc/apt/apt-mirrors.txt
     19         sudo sed -i 's/azure\.//' /etc/apt/apt-mirrors.txt
     20         cat /etc/apt/apt-mirrors.txt
     21         sudo apt-get update
     22         sudo apt install -y texlive-full
     23     - uses: actions/setup-java@v4
     24       with:
     25         distribution: 'graalvm' # See 'Supported distributions' for available options
     26         java-version: '21'
     27     - name: Compile arara
     28       run: ./compile.sh
     29     - name: Compile LaTeX document
     30       run: ./build.sh
     31     - uses: actions/upload-artifact@v4
     32       with:
     33         name: pdf
     34         path: |
     35           build/root.pdf
     36   build-pandoc:
     37     runs-on: ubuntu-latest
     38     steps:
     39     - uses: actions/checkout@v4
     40     - uses: actions/setup-java@v4
     41       with:
     42         distribution: 'graalvm' # See 'Supported distributions' for available options
     43         java-version: '21'
     44     - name: Compile arara
     45       run: ./compile.sh
     46     - name: Install texlive
     47       run: |
     48         sudo sed -i 's/azure\.//' /etc/apt/apt-mirrors.txt
     49         sudo apt-get update
     50         sudo apt install -y libreoffice pandoc texlive-full
     51     - name: Compile LaTeX document
     52       run: ./build.sh
     53     - name: Build markdown
     54       working-directory: build
     55       run: "pandoc -s root.tex -o root.md"
     56     - name: Run make4ht
     57       working-directory: build
     58       run: make4ht -s -u -l --format odt --loglevel info -e ../build.mk4 root.tex || exit 0
     59     - name: Convert to docx
     60       working-directory: build
     61       run: soffice --convert-to docx root.odt
     62     - uses: actions/upload-artifact@v4
     63       with:
     64         name: pandoc
     65         path: |
     66           build/root.md
     67           build/root.odt
     68           build/root.docx