Skip to content

Commit

Permalink
Merge branch 'main' of github.com:NorwegianVeterinaryInstitute/lister…
Browse files Browse the repository at this point in the history
…iacalculator
  • Loading branch information
novica committed Sep 25, 2024
2 parents 8e49062 + 9a44e81 commit 88a371c
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Deploy a shiny app to Posit Connect
# Worflow derived from https://github.com/r-lib/actions/blob/v2/examples/shiny-deploy.yaml
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
# See also: https://solutions.posit.co/operations/deploy-methods/ci-cd/github-actions/

name: Update Requirements on Deploy Branch

on:
push:
branches:
- main # Trigger when pushing to main

jobs:
ci:
runs-on: ubuntu-latest

steps:
- name: Install ubuntu deps
run: sudo apt-get install -y --no-install-recommends libcurl4-openssl-dev

- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-renv@v2

- name: Install rsconnect
run: install.packages("rsconnect")
shell: Rscript {0}

- name: Generate rsconnect manifest.json
run: rsconnect::writeManifest()
shell: Rscript {0}

- name: Publish to Posit Connect
uses: rstudio/actions/connect-publish@main
with:
url: ${{ secrets.CONNECT_SERVER }}
api-key: ${{ secrets.CONNECT_API_KEY }}
access-type: all
dir: |
.:/listeriacalculator

0 comments on commit 88a371c

Please sign in to comment.