Skip to content

Commit

Permalink
.github/workflow: render_qmd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmanke committed Mar 15, 2024
1 parent f3fd64f commit d79d6c2
Showing 1 changed file with 24 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ run-name: ${{ github.actor }} is testing

on:
push:
branches: ["2023.03"]
branches: ["2024.04"]


jobs:
Expand All @@ -26,12 +26,11 @@ jobs:
- uses: actions/checkout@v2
- name: Check yaml
run: |
cat conda_config.yml || true
cat configs/config.yml || true
- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@main
with:
environment-file: conda_config.yml
# environment-name: Rintro2023
environment-file: configs/conda.yml

- name: List Available Environment
shell: bash -l {0}
Expand All @@ -46,20 +45,30 @@ jobs:
which R || true
R --version || true
- name: Render R Markdown and Move Site
run: |
Rscript -e "rmarkdown::render_site('rmd')"
mv projects/tidyverse/*_files projects/tidyverse/*.html projects/tidyverse/styles.css rmd/_site/
mv projects/tidyverse/images/* rmd/_site/images/
- name: Installation non-conda packages
run: |
Rscript -e 'install.packages("dslabs", repos="https://cloud.r-project.org")'
- name: Render quarto
#continue-on-error: true. # only for error tracking
run: quarto render

- name: Show all files
run: ls -Ral

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ !env.ACT }}
- name: Upload
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: |
./rmd/_site
path: ./docs

deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit d79d6c2

Please sign in to comment.