Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create output in pages subdirectory, then publish it to github pages #42

Merged
merged 3 commits into from
Apr 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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