Skip to content

bookdown build workaround #5

bookdown build workaround

bookdown build workaround #5

on:
push:
branches: [main]
# release:
# types: [published]
workflow_dispatch:
name: pkgdown
jobs:
pkgdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: pkgdown
needs: website
- name: Deploy documentation
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "[email protected]"
LOAD_MONITOS_PACKAGE=true Rscript -e "pkgdown::deploy_to_branch(new_process = FALSE, subdir = '$(git describe --abbrev=0 --tags)')"