Skip to content

Lassa revs 2

Lassa revs 2 #93

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
on:
push:
branches: main
pull_request:
branches: main
workflow_dispatch:
name: render website
jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
# Existing jobs
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: [email protected]
# Custom jobs
- name: Initialise site
run: Rscript -e "pkgdown::init_site()"
- name: Build home
run: Rscript -e "pkgdown::build_home()"
- name: Build articles
run: Rscript -e "pkgdown::build_articles()"
# Commit
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs