Skip to content

Commit

Permalink
bookdown workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellmanware committed Feb 2, 2024
1 parent 0aedd5f commit c01dc67
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/bookdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
name: Bookdown

on:
push:
pull_request:
branches: [main, master]

jobs:
bookdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Render book
run: bookdown::render_book(".", quiet = TRUE)
shell: Rscript {0}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Welcome

[![Super-Lint](https://github.com/NIEHS/PCOR_bookdown_tools/actions/workflows/superlint.yml/badge.svg?branch=mm_workflows)](https://github.com/NIEHS/PCOR_bookdown_tools/actions/workflows/superlint.yml/badge.svg?branch=mm_workflows)
[![Bookdown](https://github.com/NIEHS/PCOR_bookdown_tools/actions/workflows/bookdown.yml/badge.svg?branch=mm_workflows)](https://github.com/NIEHS/PCOR_bookdown_tools/actions/workflows/bookdown.yml/badge.svg?branch=mm_workflows)

This is a data analysis examples book based on R Markdown and bookdown (<https://github.com/rstudio/bookdown>). The dataset and large files are under ddn: <smb://wine/pcor_climate/Bookdown_tool/>

Expand Down

0 comments on commit c01dc67

Please sign in to comment.