Merge branch 'master' of https://github.com/ipeaGIT/r5r #362
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "actions@github.com" | |
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' | |
working-directory: r-package |