diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml index 795b85c3..b90f75c5 100644 --- a/.github/workflows/render.yml +++ b/.github/workflows/render.yml @@ -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 @@ -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: @@ -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: . diff --git a/_site.yml b/_site.yml index f5319ace..66c2f69e 100644 --- a/_site.yml +++ b/_site.yml @@ -1,5 +1,5 @@ name: "Bayesian Data Analysis course" -output_dir: "_site" +output_dir: "." navbar: title: "Bayesian Data Analysis course" left: diff --git a/assignments/_quarto.yml b/assignments/_quarto.yml index 913ad03c..fc93fd35 100644 --- a/assignments/_quarto.yml +++ b/assignments/_quarto.yml @@ -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