feat(pkgdown): add dark-mode toggle + search + a11y labels #45
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: | |
| branches: | |
| - main | |
| - master | |
| workflow_dispatch: | |
| name: pkgdown | |
| jobs: | |
| pkgdown: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| env: | |
| R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| CFBD_API_KEY: ${{ secrets.CFBD_API_KEY }} | |
| RSPM: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: r-lib/actions/setup-r@v2 | |
| - uses: r-lib/actions/setup-pandoc@v2 | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| cache-version: 1 | |
| extra-packages: | | |
| any::pkgdown | |
| any::animation | |
| any::baseballr | |
| any::hoopR | |
| any::fastRhockey | |
| any::ggimage | |
| any::knitr | |
| any::oddsapiR | |
| any::pacman | |
| any::pak | |
| any::ragg | |
| any::remotes | |
| any::rsconnect | |
| any::sportyR | |
| any::tictoc | |
| any::wehoop | |
| any::zoo | |
| local::. | |
| needs: website | |
| - name: Install system dependencies | |
| run: | | |
| pak::pkg_install("sportsdataverse/cfbfastR") | |
| shell: Rscript {0} | |
| - 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::deploy_to_branch(new_process = FALSE)' |