mirror of
https://github.com/wilsonfreitas/awesome-quant.git
synced 2026-08-23 16:58:06 +00:00
Create render-README.yaml
This commit is contained in:
@@ -0,0 +1,48 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main, master]
|
||||||
|
pull_request:
|
||||||
|
branches: [main, master]
|
||||||
|
schedule:
|
||||||
|
# * is a special character in YAML so you have to quote this string
|
||||||
|
# Trigger once a week, on a Sunday (0)
|
||||||
|
- cron: "0 0 * * 0"
|
||||||
|
|
||||||
|
name: render-README
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
render-README:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: r-lib/actions/setup-pandoc@v2
|
||||||
|
with:
|
||||||
|
pandoc-version: "3.1.3"
|
||||||
|
|
||||||
|
- uses: quarto-dev/quarto-actions/setup@v2
|
||||||
|
with:
|
||||||
|
version: pre-release
|
||||||
|
- run: |
|
||||||
|
quarto --version
|
||||||
|
|
||||||
|
- uses: r-lib/actions/setup-r@v2
|
||||||
|
with:
|
||||||
|
use-public-rspm: true
|
||||||
|
|
||||||
|
- uses: r-lib/actions/setup-r-dependencies@v2
|
||||||
|
with:
|
||||||
|
pak-version: devel
|
||||||
|
extra-packages: |
|
||||||
|
quarto-dev/quarto-r
|
||||||
|
|
||||||
|
- name: Render README
|
||||||
|
run: |
|
||||||
|
options(crayon.enabled = TRUE)
|
||||||
|
quarto::quarto_render("README.qmd", output_format = "html")
|
||||||
|
fs::file_copy("README.html", "index.html", overwrite = TRUE)
|
||||||
|
shell: Rscript {0}
|
||||||
|
|
||||||
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
Reference in New Issue
Block a user