Skip to content

Forenkling av pkgdown-action (#46) #30

Forenkling av pkgdown-action (#46)

Forenkling av pkgdown-action (#46) #30

Workflow file for this run

name: Build and deploy documentation
on:
release:
types: [published]
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pkgdown:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website
- name: Install and Build 🔧
run: pkgdown::build_site()
shell: Rscript {0}
- name: Deploy 🚀
if: github.event_name == 'release'
uses: JamesIves/github-pages-deploy-action@v4.6.4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.