Add RRLS∩NTS overlap tab, date range filters, and source filters #20
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: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci --legacy-peer-deps | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install Python dependencies | |
| run: pip install psycopg2-binary | |
| - name: Export LRLS data | |
| env: | |
| DB_HOST: ${{ secrets.DB_HOST }} | |
| DB_PASSWORD: ${{ secrets.DB_PASSWORD }} | |
| run: | | |
| python scripts/export_lrls_data.py || echo "LRLS export skipped" | |
| - name: Build | |
| run: npm run build | |
| - name: Deploy to GitHub Pages (hcss-utils — authoritative) | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./dist | |
| # Mirror the same dist/ to sdspieg/redlines-dashboard's gh-pages so | |
| # https://sdspieg.github.io/redlines-dashboard/ (the historically-advertised URL) | |
| # keeps serving. Removing this step cleanly takes the legacy URL offline. | |
| - name: Deploy to sdspieg/redlines-dashboard gh-pages (legacy URL mirror) | |
| if: ${{ env.SDSPIEG_PAGES_PAT != '' }} | |
| env: | |
| SDSPIEG_PAGES_PAT: ${{ secrets.SDSPIEG_PAGES_PAT }} | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| personal_token: ${{ secrets.SDSPIEG_PAGES_PAT }} | |
| external_repository: sdspieg/redlines-dashboard | |
| publish_branch: gh-pages | |
| publish_dir: ./dist |