Skip to content

Commit 688050f

Browse files
authored
Merge pull request #42 from fangohr/tidy-up-pages-directories
create output in pages subdirectory, then publish it to github pages
2 parents a375056 + 7cfd3f8 commit 688050f

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Book Deploy
1+
name: Create and deploy html and pdf on gh-pages
22

33
on:
44
release:
@@ -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
54-
sudo cp book/_build/latex/book.pdf book/_build/html/book.pdf
54+
sudo cp -v 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 -av book/_build/html/* pages
60+
cp -av 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)