added to skip tests on cran #49
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
| name: pkgdown | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-pandoc@v2 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libudunits2-dev libgdal-dev libgeos-dev libproj-dev | |
| - name: Install dependencies | |
| run: | | |
| Rscript -e "install.packages('remotes')" | |
| Rscript -e "remotes::install_deps(dependencies = TRUE)" | |
| Rscript -e "install.packages('pkgdown'); remotes::install_deps(dependencies = TRUE)" | |
| Rscript -e "remotes::install_local('.', dependencies = TRUE, verbose = TRUE)" | |
| - name: Build site | |
| run: | | |
| Rscript -e "pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)" | |
| - name: Disable Jekyll | |
| run: touch docs/.nojekyll | |
| - name: Deploy to GitHub Pages | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: docs |