Skip to content

Add Connect deploy workflows with PR previews - #81

Open
tdstein wants to merge 8 commits into
mainfrom
connect-deploy
Open

Add Connect deploy workflows with PR previews#81
tdstein wants to merge 8 commits into
mainfrom
connect-deploy

Conversation

@tdstein

@tdstein tdstein commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds .github/workflows/deploy.yml: deploys inst/biodiversity-app.R to two Connect servers (dev = dogfood, staging) via a matrix using posit-dev/connect-actions. Pushes to main deploy to "production"; pull requests deploy draft previews and comment the preview URLs.
  • Adds .github/workflows/cleanup-previews.yml: removes the draft preview bundles from both servers when a PR closes.
  • Auth is Trusted Publishing (OIDC) — no stored secrets; requires trusted publishers configured on each content item's Access tab for this repo.
  • Fixes the shinychat remote in DESCRIPTION: the R package lives in the pkg-r subdirectory of the monorepo, so the old posit-dev/shinychat remote silently fell back to CRAN shinychat (0.4.0), which lacks chat_server.

tdstein and others added 8 commits August 4, 2026 14:32
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>
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Preview deployed to Connect (dogfood.team.pct.posit.it): https://dogfood.team.pct.posit.it/connect/#/apps/d7a36cae-8f27-448b-a478-61b81fbe3942/draft/358249

Deployed from commit b3f83f3.

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Preview deployed to Connect (connect.staging.pct.posit.it): https://connect.staging.pct.posit.it/connect/#/apps/ad662e1b-5048-4acc-9ad7-f9478c92274e/draft/1640

Deployed from commit b3f83f3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant