fix: changing all error messages and warnings to use cli_alert_*()
…
#195
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 | |
workflow_dispatch: | |
name: pkgdown | |
jobs: | |
pkgdown: | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {os: 'ubuntu-latest', r: 'release'} | |
env: | |
R_KEEP_PKG_SOURCE: yes | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setting up R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
http-user-agent: ${{ matrix.config.http-user-agent }} | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- name: Setting up R dependencies | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
cache-version: 1 | |
extra-packages: | | |
any::pkgdown | |
any::animation | |
any::fastRhockey | |
any::ggimage | |
any::hoopR | |
any::knitr | |
any::oddsapiR | |
any::pacman | |
any::pak | |
any::ragg | |
any::remotes | |
any::rsconnect | |
any::sportyR | |
any::tictoc | |
any::zoo | |
local::. | |
needs: website | |
- 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)' |