Skip to content

Commit e6937c7

Browse files
committed
Re-arrange publish
1 parent 4928524 commit e6937c7

13 files changed

+12
-4
lines changed

.github/workflows/publish-demo.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,27 @@ jobs:
5151
- name: Render sample deployment HTML document template
5252
uses: quarto-dev/quarto-actions/render@v2
5353
with:
54-
path: "docs/examples/html-document/index.qmd"
54+
path: "examples/html-document/index.qmd"
5555

5656
- name: Render sample deployment website template
5757
uses: quarto-dev/quarto-actions/render@v2
5858
with:
59-
path: "docs/examples/website"
59+
path: "examples/website"
6060

6161
- name: Render sample deployment book template
6262
uses: quarto-dev/quarto-actions/render@v2
6363
with:
64-
path: "docs/examples/book"
64+
path: "examples/book"
6565

66-
# Collect and, then, publish onto gh-pages the output
66+
# Collect the output into the docs/ directory
67+
- name: Copy examples into the docs directory
68+
run: |
69+
mkdir -p docs/examples && \
70+
cp -rp examples/book/_book docs/examples/book && \
71+
cp -rp examples/website/_site docs/examples/website && \
72+
cp -rp examples/html-document/ docs/examples/html-document && \
73+
74+
# Publish the docs directory onto gh-pages
6775
- name: "Render and Publish"
6876
uses: quarto-dev/quarto-actions/publish@v2
6977
with:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)