Dev 0.1.9.9999 #86
Workflow file for this run
This file contains 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: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
release: | |
types: [published] | |
workflow_dispatch: | |
name: Render README | |
jobs: | |
render: | |
name: ubuntu readme | |
runs-on: ubuntu-latest | |
# Only restrict concurrency for non-PR jobs | |
concurrency: | |
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Install system dependencies | |
run: | | |
# install spatial dependencies | |
sudo apt-get install libgdal-dev libproj-dev libgeos-dev libudunits2-dev | |
# install systemfont and ragg dependencies | |
sudo apt-get install libharfbuzz-dev libfribidi-dev | |
- uses: r-lib/actions/setup-renv@v2 | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: local::. | |
needs: website | |
- name: Render README | |
run: Rscript -e 'rmarkdown::render("README.Rmd", output_format = "md_document")' | |
- name: Commit results | |
run: | | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
git add -f README.md man/figures/README-* | |
git commit -m 'Re-build README.Rmd' || echo "No changes to commit" | |
git push origin || echo "No changes to commit" |