- Create a manifest using
rsconnect - Use API to create content on RSC -> GUID
- Create a tar.gz bunlde with the manifest
- USe API to push the bundle
Requires the rsconnect package
rsconnect::writeManifest()In this case a content will
library(connectapi)
client <- connect("https://beta.rstudioconnect.com/", Sys.getenv("RSC_BETA_TOKEN"))
bundle <- bundle_dir(book_dir)
depl <- deploy(client, bundle, name = "demo-book")
poll_task(depl)https://github.com/rstudio/connect-api-deploy-shiny/tree/master/deploy
https://pypi.org/project/rsconnect-python/
Example with a manifest
pip install rsconnect-python
rsconnect deploy manifest ${{ steps.built-book.outputs.dir}} \
-s $CONNECT_SERVER
-k $CONNECT_API_KEY
-a $CONTENT_ID
-t "Demo book deployed with rsconnect-python"
-v