diff --git a/run_end_to_end_workflow.sh b/run_end_to_end_workflow.sh index 9d5a254..cef2080 100755 --- a/run_end_to_end_workflow.sh +++ b/run_end_to_end_workflow.sh @@ -534,11 +534,12 @@ $(git diff origin/main..HEAD --name-only | head -20) # Create static directory if it doesn't exist mkdir -p static - # Copy dashboard files + # Copy dashboard files (rename _nemar.html to .html for deployment) print_info "Copying dashboard files to static directory..." - cp "$ORIGINAL_DIR/interactive_reports/dataset_citations_dashboard_nemar.html" static/ 2>/dev/null || print_warning "Dashboard HTML not found" + cp "$ORIGINAL_DIR/interactive_reports/dataset_citations_dashboard_nemar.html" static/dataset_citations_dashboard.html 2>/dev/null || print_warning "Dashboard HTML not found" cp -r "$ORIGINAL_DIR/interactive_reports/data" static/ 2>/dev/null || print_warning "Data directory not found" cp "$ORIGINAL_DIR/interactive_reports/dashboard_styles.css" static/ 2>/dev/null || print_warning "Styles CSS not found" + cp "$ORIGINAL_DIR/interactive_reports/dashboard_templates.js" static/ 2>/dev/null || print_warning "Dashboard templates not found" # Check if there are changes to commit if ! git diff --quiet; then @@ -546,10 +547,15 @@ $(git diff origin/main..HEAD --name-only | head -20) git add static/ git commit -m "Update NEMAR citations dashboard - $(date +'%Y-%m-%d %H:%M')" - # Push to GitHub Pages - if git push origin main; then + # Push to GitHub Pages (detect current branch instead of hardcoding) + PAGES_BRANCH=$(git rev-parse --abbrev-ref HEAD) + if git push origin "$PAGES_BRANCH"; then print_status "Dashboard deployed successfully to GitHub Pages ✓" - print_info "Dashboard URL: https://neuromechanist.github.io/static/dataset_citations_dashboard_nemar.html" +<<<<<<< Updated upstream + print_info "Dashboard URL: https://neuromechanist.github.io/dataset_citations_dashboard_nemar.html" +======= + print_info "Dashboard URL: https://neuromechanist.github.io/dataset_citations_dashboard.html" +>>>>>>> Stashed changes else print_warning "Failed to push dashboard to GitHub Pages" fi