ci.yml 672 B

123456789101112131415161718
  1. on: push
  2. jobs:
  3. build:
  4. runs-on: ubuntu-latest
  5. steps:
  6. - name: Setup
  7. run: sudo apt-get update && sudo apt-get install --no-install-recommends -y biber latexmk lmodern texlive-bibtex-extra texlive-latex-extra texlive-science
  8. - name: Checkout
  9. uses: actions/checkout@v2
  10. - name: Change to python edition
  11. run: sed -i 's|\\def\\edition{0}|\\def\\edition{1}|g' book.tex
  12. - name: Build PDF
  13. run: make
  14. - name: Release
  15. uses: softprops/action-gh-release@v1
  16. if: startsWith(github.ref, 'refs/tags/')
  17. with:
  18. files: book.pdf