Theming edits for valueboxes #31
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: Render Quarto Dashboard | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
render-dashboard: | |
runs-on: self-hosted | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up R | |
uses: r-lib/actions/setup-r@v2 | |
- name: Set up environment variables | |
run: | | |
echo "DB_HOST=${{ secrets.DB_HOST }}" >> $GITHUB_ENV | |
echo "DB_PORT=${{ secrets.DB_PORT }}" >> $GITHUB_ENV | |
echo "DB_NAME=${{ secrets.DB_NAME }}" >> $GITHUB_ENV | |
echo "DB_USER=${{ secrets.DB_USER }}" >> $GITHUB_ENV | |
echo "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" >> $GITHUB_ENV | |
- name: Install system dependencies | |
run: | | |
brew install gdal libxml2 tesseract geos | |
- name: Install Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
- name: Install renv and restore environment | |
run: | | |
Rscript -e 'install.packages("renv")' | |
Rscript -e 'renv::restore()' | |
- 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 --output-dir docs | |
- name: Commit rendered files | |
run: | | |
git config --global user.name 'GitHub Action' | |
git config --global user.email 'action@github.com' | |
git add docs | |
git commit -m "Render Quarto Dashboard" || echo "No changes to commit" | |
git push |