Skip to content

Merge branch 'main' of https://github.com/padrinoDB/ipmr #51

Merge branch 'main' of https://github.com/padrinoDB/ipmr

Merge branch 'main' of https://github.com/padrinoDB/ipmr #51

Workflow file for this run

on:
push:
branches: main
name: deploy website
jobs:
pkgdown:
runs-on: ubuntu-latest
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
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: pkgdown
- name: Deploy package
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
Rscript -e 'pkgdown::build_site()'
git add docs
git commit -m 'update website'
git push https://${{github.actor}}:${{secrets.GITHUB_TOKEN}}@github.com/${{github.repository}}.git HEAD:${{github.ref}}