Skip to content

updating actions

updating actions #361

Workflow file for this run

on:
push:
paths:
- r-package/**
- README.md
- .github/workflows/pkgdown.yaml
branches:
- master
name: pkgdown
jobs:
pkgdown:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Java setup
uses: actions/setup-java@v1
with:
java-version: '21'
java-package: jdk
- name: Copy README.md to r-package/index.md
run: cp README.md r-package/index.md
- name: Update r-package/index.md figures source
run: sed -i 's/\"r-package\//\"/g' r-package/index.md
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website
working-directory: r-package
- name: Build and deploy pkgdown site
run: |
git config --local user.name "GitHub Actions"
git config --local user.email "[email protected]"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
working-directory: r-package