Skip to content

Commit

Permalink
Test deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
GuidoMaggio committed May 7, 2024
1 parent c1264ec commit 675e4cd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,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
1 change: 1 addition & 0 deletions .rscignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
renv.lock
12 changes: 9 additions & 3 deletions deploy/deploy-shinyapps.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ rsconnect::setAccountInfo(
Sys.getenv("SHINYAPPS_SECRET")
)

# to be added since rsconnect >1
options(rsconnect.packrat = FALSE)
# Add here any additional files/directories the app needs
app_files = c(
"app.R",
"DESCRIPTION",
"NAMESPACE",
"R/",
"inst/"
)

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

0 comments on commit 675e4cd

Please sign in to comment.