Skip to content

Commit

Permalink
test deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
GuidoMaggio committed Sep 22, 2023
1 parent dd1cec5 commit 27b2b4b
Show file tree
Hide file tree
Showing 6 changed files with 194 additions and 4,643 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ jobs:
- name: Activate renv and restore packages with cache
uses: r-lib/actions/setup-renv@v2

- name: Install renv Development tools
run: renv::install()
shell: Rscript {0}

- name: Fetch and rebuild latest data
if: github.event_name == 'schedule'
run: |
Expand All @@ -80,7 +84,7 @@ jobs:
git push origin
- name: Deploy to shinyapps.io
# Continuous deployment only for pushes to the main / master branch
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
# if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
env:
SHINYAPPS_ACCOUNT: ${{ secrets.SHINYAPPS_ACCOUNT }}
SHINYAPPS_TOKEN: ${{ secrets.SHINYAPPS_TOKEN }}
Expand Down
7 changes: 3 additions & 4 deletions deploy/deploy-shinyapps.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ rsconnect::setAccountInfo(
)

# to be added since rsconnect >1
options(rsconnect.packrat = FALSE)
options(rsconnect.packrat = TRUE)

rsconnect::deployApp(
account = "miraisolutions",
appName = "covid19",
forceUpdate = TRUE, # to be added since rsconnect >1
quarto = FALSE # to be added since rsconnect >1
appName = "covid19-test",
forceUpdate = TRUE # to be added since rsconnect >1
# exclude hidden files and renv directory (if present)
# appFiles = setdiff(list.files(), "renv")
)
Loading

0 comments on commit 27b2b4b

Please sign in to comment.