Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
  • Loading branch information
mseri committed Sep 6, 2024
1 parent b71f2d0 commit 313daee
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/generate_pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,20 @@ jobs:
- name: Install fonts and texlive
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: fonts-opendyslexic fonts-texgyre texlive-bibtex-extra texlive-luatex texlive-latex-recommended texlive-latex-extra texlive-fonts-extra texlive-science
packages: fonts-opendyslexic fonts-texgyre biber texlive-bibtex-extra texlive-luatex texlive-latex-recommended texlive-latex-extra texlive-fonts-extra texlive-science

- name: Prepare env
run: |
sudo rm -rf /usr/share/fonts/woff/opendyslexic
sudo fc-cache
- name: full compile
run: ./compile.sh
run: |
lualatex -interaction=nonstopmode -shell-escape hm.tex
biber hm
makeindex hm
lualatex -interaction=nonstopmode -shell-escape hm.tex
lualatex -interaction=nonstopmode -shell-escape hm.tex
- name: rename tg
run: |
Expand All @@ -66,18 +71,18 @@ jobs:
# name: hm-tg-${{ env.BUILD_DATE }}-${{ env.GITHUB_TAG }}.pdf
# if-no-files-found: error

- name: Prepare for deployment
run: |
mkdir public
mv hm-images/ images/ chapter*.html index.html *.css public/
# - name: Prepare for deployment
# run: |
# mkdir public
# mv hm-images/ images/ chapter*.html index.html *.css public/

- name: Deploy release
if: ${{ success() && startsWith(github.ref, 'refs/tags/') }}
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: master
publish_dir: ./public
# - name: Deploy release
# if: ${{ success() && startsWith(github.ref, 'refs/tags/') }}
# uses: peaceiris/actions-gh-pages@v3
# with:
# personal_token: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# publish_branch: master
# publish_dir: ./public

- name: Use OpenDyslxic
run: git apply ci.patch
Expand Down

0 comments on commit 313daee

Please sign in to comment.