Install knitr #10
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
name: pkgdown-dev | |
on: | |
push: | |
jobs: | |
pkgdown-dev: | |
runs-on: windows-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Setup Pandoc for word conversion | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install ospsuite ecosystem and cran packages | |
run: | | |
Rscript .github/workflows/install_dependencies.R | |
- name: Build dev site | |
run: | | |
pkgdown::build_site() | |
shell: Rscript {0} | |
- name: Commit and push dev site | |
run: | | |
git config --local user.email "actions@github.com" | |
git config --local user.name "GitHub Actions" | |
git add --all || echo "No changes to commit" | |
git commit -m "update dev site" || echo "No changes to commit" | |
git push origin |