Skip to content

Commit

Permalink
Merge pull request #42 from fangohr/tidy-up-pages-directories
Browse files Browse the repository at this point in the history
create output in pages subdirectory, then publish it to github pages
  • Loading branch information
fangohr authored Apr 14, 2024
2 parents a375056 + 7cfd3f8 commit 688050f
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Book Deploy
name: Create and deploy html and pdf on gh-pages

on:
release:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
- name: List Available Images
run: docker images

- name: Make Docker HTML
- name: Make Docker HTML (JBook---create html)
run: make docker-html

- name: Check links - Markdown
Expand All @@ -48,17 +48,23 @@ jobs:
- name: Make Docker Linkcheck
run: make docker-linkcheck

- name: Make Docker PDF
- name: Make Docker PDF (JBook---create pdf)
run: |
make docker-pdf
sudo cp book/_build/latex/book.pdf book/_build/html/book.pdf
sudo cp -v book/_build/latex/book.pdf book/_build/html/book.pdf
# Deploy the book's HTML to gh-pages branch
- name: Gather outputs in pages
run: |
mkdir -p pages
cp -av book/_build/html/* pages
cp -av book/_build/latex/book.pdf pages
# Deploy output to gh-pages branch
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/_build/html
publish_dir: ./pages

- uses: marvinpinto/action-automatic-releases@latest
with:
Expand Down

0 comments on commit 688050f

Please sign in to comment.