Clean up dashboard: remove test files, fix navigation, show only actu… #3
This file contains hidden or 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 and Deploy Dashboard | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'data/**' | |
| - '*.qmd' | |
| - '_quarto.yml' | |
| workflow_dispatch: # Allow manual triggering | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| render-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Quarto | |
| uses: quarto-dev/quarto-actions/setup@v2 | |
| with: | |
| version: release | |
| - name: Set up R | |
| uses: r-lib/actions/setup-r@v2 | |
| with: | |
| r-version: '4.3' | |
| - name: Install R dependencies | |
| run: | | |
| install.packages(c("jsonlite", "lubridate", "dplyr", "purrr", "DT", "plotly", "knitr", "htmltools")) | |
| shell: Rscript {0} | |
| - name: Render Quarto site | |
| run: quarto render | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v3 | |
| - name: Upload pages artifact | |
| uses: actions/upload-pages-artifact@v2 | |
| with: | |
| path: docs/ | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v2 |