fixed texlive #47
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: cmh-deploy-gh-pages | |
# reference | |
# https://github.com/PreTeXtBook/pretext-cli/blob/main/.github/workflows/codespace-template.yml | |
# https://github.com/PreTeXtBook/pretext-cli/blob/main/pretext/utils.py | |
on: | |
push: | |
permissions: | |
contents: write | |
jobs: | |
cmh-preTeXt-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install TeX Live | |
uses: xu-cheng/texlive-action@v2 | |
with: | |
scheme: full | |
run: | | |
pdflatex --version | |
- name: install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: check latex executables | |
run: | | |
pdflatex --version | |
xelatex --version | |
- name: Install pretext | |
run: | | |
python -m ensurepip | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade pretext | |
- name: check latex executables, again | |
run: | | |
pdflatex --version | |
xelatex --version | |
- name: load the "base actions/checkout" so as to access cmh-preTeXt-explore | |
uses: actions/checkout@v4 | |
- name: cmh-build-HTML | |
run: pretext build web | |
- name: cmh-deploy-html | |
# https://github.com/marketplace/actions/deploy-to-github-pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: output/web | |
- name: cmh-build-pdf | |
# | |
# https://github.com/marketplace/actions/latex-compilation | |
# | |
run: pretext build print | |
# | |
# https://stackoverflow.com/questions/57498605/github-actions-share-workspace-artifacts-between-jobs | |
# | |
- name: upload main.pdf as artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: main.pdf |