update the qdc-framework and how prediction is written to database #9
Workflow file for this run
This file contains 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
name: "Connect Publish (prod)" | |
on: | |
release: | |
types: [published] | |
jobs: | |
connect-publish-prod: | |
name: "Connect Publish (prod)" | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
# install dependency from renv.lock | |
- name: Install dependencies | |
uses: r-lib/actions/setup-renv@v2 | |
# file required by Connect for deploying content programmatically. | |
- name: Generate manifest.json | |
run: Rscript dev/generate_manifest.R | |
# deploy the app to Connect | |
- name: Publish Connect content | |
uses: rstudio/actions/connect-publish@main | |
with: | |
url: ${{ secrets.RSCONNECT_URL }} # URL of the Connect server | |
api-key: ${{ secrets.RSCONNECT_API_KEY }} # Connect API key, which can be acquired from your Connect profile | |
access-type: acl # accessible to specific users and groups managed within Connect | |
force: true | |
dir: .:/experiencesdashboard # the second part specifies the URL of the deployed app |