Skip to content

Commit

Permalink
Update make-pdf-1-select.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Apr 3, 2024
1 parent 5fbc26f commit 1e33921
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions .github/workflows/make-pdf-1-select.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,57 +17,74 @@ jobs:
run: |
echo "selected PDF: ${{ github.event.inputs.pdf_target }}"
- name: Print start date
- name: print start date
run: date +%Y-%m-%d_%H:%M

- name: Checkout repository
- name: checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 1 # 0 if you want to push to repo

- name: Python set up
- name: caching LaTeX files
uses: actions/cache@v4
with:
path: |
chapters/*.aux
hpmor*.aux
hpmor*.fdb_latexmk
hpmor*.fls
hpmor*.out
hpmor*.pdf
hpmor*.toc
hpmor*.xdv
key: tex-cache

- name: ls chapters
run: ls -l chapters/

- name: python set up
uses: actions/setup-python@v5
with:
python-version: "3.10"
# cache: "pip"

- name: Test ls before
- name: ls before
run: |
pwd
ls -l
- name: Check chapters for known issues
- name: check chapters for known issues
run: python3 -O scripts/check_chapters.py

- name: Install requirements
- name: install PDF requirements
run: |
# sudo apt update > /dev/null
sh scripts/install_requirements_pdf.sh > /dev/null
- name: Print versions
- name: print versions
run: |
cat /etc/os-release
xelatex -v
latexmk -v
# pandoc -v
python3 --version
- name: Make PDF
- name: make PDF
run: |
latexmk "${{ github.event.inputs.pdf_target }}"
- name: Publish PDF to release
- name: publish PDF to release
uses: softprops/action-gh-release@v1
with:
tag_name: WorkInProgress
prerelease: true
files: |
./hpmor*.pdf
- name: Test ls after
- name: ls after
run: |
ls -l
- name: Print end date
- name: print end date
run: date +%Y-%m-%d_%H:%M

0 comments on commit 1e33921

Please sign in to comment.