Skip to content

Commit

Permalink
Needs both?
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed May 2, 2024
1 parent e794354 commit 25a4934
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/render-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches: [ main, staging ]

jobs:
yaml-check:
name: Load user automation choices
Expand All @@ -22,7 +22,7 @@ jobs:
toggle_coursera: "${{ env.RENDER_COURSERA }}"
toggle_leanpub: "${{ env.RENDER_LEANPUB }}"
rendering_docker_image: "${{ env.RENDERING_DOCKER_IMAGE }}"

clean-docs:
needs: yaml-check
runs-on: ubuntu-latest
Expand All @@ -45,11 +45,11 @@ jobs:
render-quarto-book:
name: Render Quarto Book
needs: clean-docs
needs: [yaml-check, clean-docs]
runs-on: ubuntu-latest
container:
image: ${{needs.yaml-check.outputs.rendering_docker_image}}

steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -64,7 +64,6 @@ jobs:
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
echo ${{needs.yaml-check.outputs.rendering_docker_image}}
# Run quarto::quarto_render()
- name: Run quarto render
id: quarto-render
Expand Down Expand Up @@ -117,7 +116,7 @@ jobs:
- name: Run TOC-less version of render
id: toc_less_quarto
run: Rscript -e "quarto::quarto_render('.', quarto_args = c('--output-dir', 'docs/no_toc'), metadata = list(sidebar = F, toc = F))"

# Commit the TOC-less version files
- name: Commit TOC-less Quarto files
env:
Expand All @@ -129,4 +128,3 @@ jobs:
git commit -m 'Render toc-less' || echo "No changes to commit"
git pull --allow-unrelated-histories --strategy-option=ours
git push -u origin main || echo "No changes to push"

0 comments on commit 25a4934

Please sign in to comment.