Skip to content

Package checks

Package checks #427

Workflow file for this run

# Workflow derived from https://github.com/rstudio/shiny-workflows
#
# NOTE: This Shiny team GHA workflow is overkill for most R packages.
# For most R packages it is better to use https://github.com/r-lib/actions
on:
push:
branches: [main, rc-**]
pull_request:
branches: [main]
schedule:
- cron: '0 13 * * 1' # every monday
name: Package checks
jobs:
website:
uses: rstudio/shiny-workflows/.github/workflows/website.yaml@v1
website-netlify:
uses: rstudio/shiny-workflows/.github/workflows/website-netlify.yaml@v1
secrets:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
routine:
uses: rstudio/shiny-workflows/.github/workflows/routine.yaml@v1
R-CMD-check:
uses: rstudio/shiny-workflows/.github/workflows/R-CMD-check.yaml@v1
deploy:
if: >
github.event_name == 'push' &&
github.ref_name == 'main' &&
github.repository == 'rstudio/flexdashboard'
runs-on: ubuntu-20.04
name: "Deploy to shinyapps.io"
needs: [R-CMD-check]
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: rstudio/shiny-workflows/setup-r-package@v1
with:
extra-packages: any::XML
needs: deploy
# Install from GitHub so that rsconnect can find the package
- name: Install bslib from GitHub
shell: Rscript {0}
run: |
install.packages("rsconnect")
pak::pkg_install("rstudio/flexdashboard", dependencies = TRUE, upgrade = TRUE)
- name: Register account
shell: Rscript {0}
run: |
rsconnect::setAccountInfo(
name = '${{ secrets.SHINYAPPS_NAME }}',
token = '${{ secrets.SHINYAPPS_TOKEN }}',
secret = '${{ secrets.SHINYAPPS_SECRET }}'
)
- name: Deploy
run: |
Rscript 'examples/deploy.R'