name: Deploy to GitHub Pages on: push: branches: - main workflow_dispatch: permissions: contents: read pages: write id-token: write concurrency: group: "pages" cancel-in-progress: false jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 with: python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt pip install git+https://github.com/SAP-samples/sap-rpt-1-oss - name: Generate synthetic data run: | python -c "from utils.data_generator import generate_all_datasets; generate_all_datasets()" - name: Setup Pages uses: actions/configure-pages@v3 - name: Build documentation run: | # Create a simple HTML page for GitHub Pages mkdir -p _site cat > _site/index.html << 'EOF' SAP Finance Dashboard with RPT-1-OSS

SAP Finance Dashboard with RPT-1-OSS

About

This is a Python-based financial dashboard application built with Mesop that integrates the SAP-RPT-1-OSS model for predictive analysis.

Running Locally

To run this application locally:

  1. Clone the repository
  2. Install dependencies: pip install -r requirements.txt
  3. Install SAP-RPT-OSS: pip install git+https://github.com/SAP-samples/sap-rpt-1-oss
  4. Set up environment variables (see README.md)
  5. Run: mesop app.py

Deployment

Since Mesop requires a Python backend, this application cannot run directly on GitHub Pages. Consider deploying to:

Documentation

See README.md for full documentation and setup instructions.

EOF - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: path: '_site' deploy: environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2