Replies: 2 comments 1 reply
-
Classic. Figured it out after posting. Found a post on RStudio Community and modified it. Would this be useful as a function within golem? Perhaps Here's the yml: on: [push, pull_request]
name: deploy-shiny
jobs:
deploy-shiny:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@master
- name: Install dependencies
run: |
install.packages(c("remotes", "rsconnect"), type = "binary")
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Push to shinyapps.io
run: |
rsconnect::setAccountInfo(name="${{secrets.SHINY_ACC_NAME}}", token="${{secrets.TOKEN}}", secret="${{secrets.SECRET}}")
rsconnect::deployApp(appName = 'dinnR')
shell: Rscript {0} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @KoderKow, I'm moving this issue to the Discussion Panel :) Thanks, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Recently at work I have incorporated Git-Backed Content which deploys new code to RSConnect when new code is detected. I love the idea and was wondering if this is possible with GitHub Actions and shinyapps.io?
I was going through this blog post and was trying to incorporate it with my golem app. The problem is I am not familiar with GitHub actions or docker to adjust the code given so my effort ended in errors. I tried using the docker file golem generates (golem::add_dockerfile()) with modifications to run the deploy script (from the blog post) but run into the remotes package not available in the GitHub action. I looked at the docker file from the blog post and assumed it isn't set for a golem app.
Does this seem plausible? Is it useful? Would love to hear the pros/cons of trying to implement this!
Beta Was this translation helpful? Give feedback.
All reactions