name: Build and Deploy MT5 EA on: push: branches: [ main ] workflow_dispatch: jobs: build: runs-on: docker steps: - name: Checkout repo uses: actions/checkout@v4 - name: Compile EA run: | "C:\Program Files\MetaTrader 5\metaeditor.exe" ^ /compile:"${{ github.workspace }}\RSI_Stoch_MA_EA.mq5" ^ /log:"${{ github.workspace }}\build.log" ^ /quiet - name: Show compiler log run: type build.log - name: Upload EX5 artifact uses: actions/upload-artifact@v4 with: name: RSI_Stoch_MA_EA path: | RSI_Stoch_MA_EA.ex5 build.log deploy: runs-on: codeberg-medium needs: build # ensures deploy waits for build to finish steps: - name: Download built EA uses: actions/download-artifact@v4 with: name: RSI_Stoch_MA_EA - name: Deploy to MT5 Terminal run: | copy "RSI_Stoch_MA_EA.ex5" "C:\Users\sahrk\AppData\Roaming\MetaQuotes\Terminal\FB9A56D617EDDDFE29EE54EBEFFE96C1\MQL5\Experts\" /Y