MQL5-Google-Onedrive/.github/workflows/deploy-dashboard.yml
google-labs-jules[bot] fb5d048638 Bolt: Optimize EA performance and fix CI runner acquisition
MQL5 Optimizations:
- Consolidate trade counting and profit calculation into a single history scan in `UpdateDailyStatistics()`.
- Optimize `IsTradingAllowed()` with fast math for hour extraction, replacing expensive `TimeToStruct()`.
- Reduce terminal API calls in `CheckDailyLimits()` by caching account balance.
- Reuse `TimeCurrent()` value in `OnTick()` and pass to sub-functions.

CI Fixes:
- Transition all workflows from `ubuntu-latest` to `self-hosted` runners.
- This resolves the "Runner of type hosted not acquired" failure by utilizing the repository's configured self-hosted infrastructure.

Impact: Measurably faster execution in MT5 'hot paths' and restored CI/CD functionality.

Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
2026-02-02 20:58:25 +00:00

40 lines
768 B
YAML

name: Deploy Dashboard to GitHub Pages
on:
push:
branches:
- main
paths:
- 'dashboard/**'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dashboard'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4