Merge pull request #158 from waynee95/fix-typo-7-3 #586
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
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | |
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y biber latexmk lmodern texlive-bibtex-extra texlive-latex-extra texlive-science | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Change to python edition | |
run: sed -i 's|\\def\\edition{0}|\\def\\edition{1}|g' book.tex | |
- name: Build PDF | |
run: make | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: book.pdf |