Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Seri <[email protected]>
  • Loading branch information
mseri committed Sep 6, 2024
1 parent e62166c commit 7337de2
Showing 1 changed file with 29 additions and 26 deletions.
55 changes: 29 additions & 26 deletions .github/workflows/generate_pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,13 @@ jobs:
# extra_system_packages: fonts-opendyslexic fonts-texgyre texlive-bibtex-extra biber texlive-luatex texlive-latex-recommended
# entrypoint: ./compile.sh

# - name: rename tg
# run: |
# mkdir assets
# mv hm.pdf assets/hm-tg.pdf
- name: full compile
run: ./compile.sh

- name: rename tg
run: |
mkdir assets
mv hm.pdf assets/hm-tg.pdf
# - name: Upload PDF
# if: ${{ success() }}
Expand All @@ -114,18 +117,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 All @@ -146,15 +149,15 @@ jobs:
# args: -interaction=nonstopmode -shell-escape
# extra_system_packages: fonts-opendyslexic fonts-texgyre texlive-bibtex-extra biber texlive-luatex texlive-latex-recommended

# - name: rename od
# run: mv hm.pdf assets/hm-od.pdf
- name: rename od
run: mv hm.pdf assets/hm-od.pdf

# - name: Upload od assets
# if: ${{ success() && startsWith(github.ref, 'refs/tags/') }}
# id: upload-release-assets
# uses: dwenegar/upload-release-assets@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# release_id: ${{ needs.create_draft_release.outputs.id }}
# assets_path: assets/
- name: Upload od assets
if: ${{ success() && startsWith(github.ref, 'refs/tags/') }}
id: upload-release-assets
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ needs.create_draft_release.outputs.id }}
assets_path: assets/

0 comments on commit 7337de2

Please sign in to comment.