Add Connect deploy workflows with PR previews - #81
Open
tdstein wants to merge 8 commits into
Open
Conversation
Deploys inst/biodiversity-app.R to dev (dogfood) and staging Connect servers via posit-dev/connect-actions, with draft previews on PRs and cleanup when PRs close. Auth is via Trusted Publishing (OIDC). Also fix the shinychat remote: the R package lives in the pkg-r subdirectory of the monorepo, so the old remote silently fell back to CRAN shinychat, which lacks chat_server. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
cleanup-previews reads the content GUID and bundle IDs from the PR preview comments, so it only needs connect-server per server. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Trusted publishing tokens can't PATCH /v1/content/:guid, but rsconnect's `deploy manifest` updates the title whenever it differs from the content's current title on Connect. Pass a --title that exactly matches the content title so the PATCH is skipped. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Preview deployed to Connect ( Deployed from commit b3f83f3. |
|
Preview deployed to Connect ( Deployed from commit b3f83f3. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/deploy.yml: deploysinst/biodiversity-app.Rto two Connect servers (dev = dogfood, staging) via a matrix using posit-dev/connect-actions. Pushes tomaindeploy to "production"; pull requests deploy draft previews and comment the preview URLs..github/workflows/cleanup-previews.yml: removes the draft preview bundles from both servers when a PR closes.shinychatremote inDESCRIPTION: the R package lives in thepkg-rsubdirectory of the monorepo, so the oldposit-dev/shinychatremote silently fell back to CRAN shinychat (0.4.0), which lackschat_server.