Skip to content

Commit

Permalink
Fix render dir
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Aug 13, 2024
1 parent cb1b08c commit 04a3772
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:

jobs:
render-website:
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -40,14 +40,10 @@ jobs:
local::rpackage
github::stan-dev/cmdstanr

# _site.yml file configured to render website to the _site folder,
# which is the expected location for the Quarto publish step
- name: Render Main Rmarkdown Website
run: rmarkdown::render_site()
shell: Rscript {0}

# Assignments _quarto.yml file configured to render website to the
# _site/assignments folder
- name: Render Assignments Quarto Sub-website
uses: quarto-dev/quarto-actions/render@v2
with:
Expand All @@ -56,7 +52,7 @@ jobs:
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
github_token: ${{ secrets.GH_ACTION}}
publish_branch: gh-pages
keep_files: true
publish_dir: _site
publish_dir: .
2 changes: 1 addition & 1 deletion _site.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Bayesian Data Analysis course"
output_dir: "_site"
output_dir: "."
navbar:
title: "Bayesian Data Analysis course"
left:
Expand Down
2 changes: 1 addition & 1 deletion assignments/_quarto.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project:
title: "Bayesian Data Analysis"
type: website
output-dir: ../_site/assignments
output-dir: "."
website:
page-navigation: true
# back-to-top-navigation: true
Expand Down

0 comments on commit 04a3772

Please sign in to comment.