Skip to content

cleanup readme

cleanup readme #35

on:
push:
branches:
- bookdown
workflow_dispatch: {}
name: renderbook
jobs:
bookdown:
name: Render-Book
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install rmarkdown
run: Rscript -e 'install.packages(c("rmarkdown","bookdown"))'
- name: Render Book
run: Rscript -e 'bookdown::render_book("index.Rmd")'
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
BIGQUERY_OEPS_TUTORIAL_KEY: ${{ secrets.BIGQUERY_KEY }}
- uses: actions/upload-artifact@v4
with:
name: _book
path: _book/
checkout-and-deploy:
runs-on: ubuntu-latest
needs: bookdown
steps:
- name: Checkout
uses: actions/checkout@master
- name: Download artifact
uses: actions/[email protected]
with:
# Artifact name
name: _book # optional
# Destination path
path: _book # optional
- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cname: oepsdata.healthyregions.org
email: ${{ github.actor }}
build_dir: _book/