Skip to content

Commit

Permalink
Switch to a template with a rename
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jun 2, 2024
1 parent 99d158c commit b6620db
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,35 +46,42 @@ jobs:
with:
path: "docs"

# Generate the template file under different profiles
- name: Render assign-template
uses: quarto-dev/quarto-actions/render@v2
with:
path: "demo/index.qmd"
path: "template.qmd"
env:
QUARTO_PROFILE: assign

- name: Render solution-template
uses: quarto-dev/quarto-actions/render@v2
with:
path: "demo/index.qmd"
path: "template.qmd"
env:
QUARTO_PROFILE: solution

- name: Render solution-template
- name: Render rubric-template
uses: quarto-dev/quarto-actions/render@v2
with:
path: "demo/index.qmd"
path: "template.qmd"
env:
QUARTO_PROFILE: rubric

# Collect the output into the staging/ directory
- name: Copy documentation portal & examples into the staging directory
run: |
mkdir -p staging/demo/{solution,assign,rubric} && \
cp -rp docs/_site/* staging/ && \
cp -rp demo/solution/* staging/demo/solution && \
cp -rp demo/assign/* staging/demo/assign && \
cp -rp demo/rubric/* staging/demo/rubric
cp -rp docs/_site/* staging/
# Define an array of directories
dirs=("solution" "assign" "rubric")
# Loop through the directories to copy files and rename the template
for dir in "${dirs[@]}"; do
cp -rp ${dir}/* staging/demo/${dir}/
mv staging/demo/${dir}/template.html staging/demo/${dir}/index.html
done
# Remove symlinks
- name: Delete symlinks
Expand Down
File renamed without changes.

0 comments on commit b6620db

Please sign in to comment.