userguide.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. name: Wiki PDF
  2. on:
  3. gollum
  4. jobs:
  5. build:
  6. runs-on: ubuntu-20.04
  7. steps:
  8. - uses: actions/checkout@v2
  9. with:
  10. repository: ${{ github.repository }}.wiki
  11. - name: Cache
  12. uses: actions/cache@v2
  13. with:
  14. path: |
  15. ~/.cache/Tectonic/
  16. key: ${{ runner.os }}-${{ env.cache-name }}-tectonic
  17. - name: Download pandoc+tectonic
  18. run: |
  19. wget -qO- https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.3.3/tectonic-0.3.3-x86_64-unknown-linux-gnu.tar.gz | tar xzvf - tectonic
  20. wget -qO- https://github.com/jgm/pandoc/releases/download/2.11.3.1/pandoc-2.11.3.1-linux-amd64.tar.gz | tar --strip-components=2 -xzvf - pandoc-2.11.3.1/bin/pandoc
  21. sudo mv -f pandoc tectonic /usr/local/bin
  22. - name: Build PDF
  23. run: |
  24. cat Home.md | sed '1,/<!--- TOC END -->/d' | cat .pandoc/meta.yaml - | pandoc --from=markdown --template=.pandoc/eisvogel.tex --toc --pdf-engine tectonic -o userguide.pdf
  25. - name: Upload PDF to release assets
  26. uses: svenstaro/upload-release-action@483c1e56f95e88835747b1c7c60581215016cbf2
  27. with:
  28. repo_token: ${{ secrets.GITHUB_TOKEN }}
  29. file: userguide.pdf
  30. tag: userguide
  31. overwrite: true