Skip to content

Commit

Permalink
Update render-README.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NicK4rT authored Nov 23, 2024
1 parent 349354c commit 4a153ca
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/render-README.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,22 @@ jobs:
render:
runs-on: ubuntu-latest

steps:
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install R and Required Packages
run: |
sudo apt-get update
sudo apt-get install -y r-base
Rscript -e 'if (!requireNamespace("rmarkdown", quietly = TRUE)) install.packages("rmarkdown")'
Rscript -e 'if (!requireNamespace("knitr", quietly = TRUE)) install.packages("knitr")'
Rscript -e 'if (!requireNamespace("rmarkdown", quietly = TRUE)) install.packages("rmarkdown", repos = "https://cloud.r-project.org/")'
Rscript -e 'if (!requireNamespace("knitr", quietly = TRUE)) install.packages("knitr", repos = "https://cloud.r-project.org/")'
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Find and Render README.qmd Files
run: |
find . -name "README.qmd" | while read qmd_file; do
quarto render "$qmd_file" --to html
quarto render "$qmd_file" --to markdown
done

0 comments on commit 4a153ca

Please sign in to comment.