Skip to content

Commit

Permalink
update to latest version of workflow from r-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
avanlinden committed Aug 22, 2024
1 parent 74f76de commit 03d1881
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/deploy-shinyapps-io.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help

name: shinyapps-io-deploy
Expand All @@ -13,23 +13,23 @@ jobs:
shinyapps-io-deploy:
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v4

- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt-get install -y pip python3-venv libcurl4-openssl-dev
- uses: r-lib/actions/setup-pandoc@v2

- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Install R packages
run: |
# The binary package distributions from R Studio dramatically speed up installation time
options(repos = c(REPO_NAME = "https://packagemanager.rstudio.com/all/__linux__/focal/latest",
getOption("repos")))
install.packages(c("dplyr", "purrr", "reactable", "shiny", "rsconnect", "rjson", "httr"))
shell: sudo Rscript {0} # running this step as 'sudo' is necessary to be able to install packages in default library
- uses: r-lib/actions/setup-renv@v2

- name: Install rsconnect
run: install.packages("rsconnect")
shell: Rscript {0}

- name: Authorize and deploy app
run: |
Expand Down

0 comments on commit 03d1881

Please sign in to comment.