Skip to content

Commit bb20136

Browse files
committed
create output in pages subdirectory, then publish it to github pages
1 parent a375056 commit bb20136

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: List Available Images
4040
run: docker images
4141

42-
- name: Make Docker HTML
42+
- name: Make Docker HTML (JBook: create html)
4343
run: make docker-html
4444

4545
- name: Check links - Markdown
@@ -48,17 +48,23 @@ jobs:
4848
- name: Make Docker Linkcheck
4949
run: make docker-linkcheck
5050

51-
- name: Make Docker PDF
51+
- name: Make Docker PDF (JBook: create pdf)
5252
run: |
5353
make docker-pdf
5454
sudo cp book/_build/latex/book.pdf book/_build/html/book.pdf
5555
56-
# Deploy the book's HTML to gh-pages branch
56+
- name: Gather outputs in pages
57+
run: |
58+
mkdir -p pages
59+
cp -a book/_build/html/* pages
60+
cp -a book/_build/latex/book.pdf pages
61+
62+
# Deploy output to gh-pages branch
5763
- name: GitHub Pages action
5864
uses: peaceiris/actions-gh-pages@v3
5965
with:
6066
github_token: ${{ secrets.GITHUB_TOKEN }}
61-
publish_dir: ./book/_build/html
67+
publish_dir: ./pages
6268

6369
- uses: marvinpinto/action-automatic-releases@latest
6470
with:

0 commit comments

Comments
 (0)