Skip to content

Update load_dashboard.yml #3

Update load_dashboard.yml

Update load_dashboard.yml #3

name: Render and Deploy Quarto Dashboard
on:
push:
branches:
- main
jobs:
render-dashboard:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up R
uses: r-lib/actions/setup-r@v2
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Install R Dependencies
run: |
Rscript -e 'install.packages(c("DBI", "RPostgres", "rmarkdown", "knitr","tidyverse","ggplot2", "showtext", "rnaturanearth", "rnaturalearthdata", "plotly", "jsonlite", "ggthemes" ))'
- name: Render Quarto Dashboard
env:
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
run: |
quarto render dashboard.qmd