Skip to content

Commit

Permalink
Build book and publish PDF directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Songtech-0912 committed Aug 29, 2023
1 parent 4b77116 commit fea0b5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
jupyter-book build ./book
- name: Push _build/html to gh-pages
- name: Push built book to gh-pages
run: |
sudo chown -R $(whoami):$(whoami) .
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
Expand All @@ -45,7 +45,7 @@ jobs:
texlive-fonts-extra \
texlive-xetex latexmk
jupyter-book build book --builder pdflatex
zip -r build_output.zip book/_build
mv book/_build/latex/python.pdf book/_build/elara-handbook.pdf
- name: Upload book PDF to Github releases
env:
Expand All @@ -58,4 +58,4 @@ jobs:
--tag_name v0.0.0-$(git rev-parse HEAD | cut -c 1-8) \
--prerelease \
--body_string "Automatically generated from book sources via Github Actions" \
build_output.zip
book/_build/elara-handbook.pdf

0 comments on commit fea0b5a

Please sign in to comment.