MQL4/.github/workflows/sync-to-forge.yml
2025-11-04 16:19:56 +05:30

27 lines
723 B
YAML

name: Sync to Forge
on:
push:
branches:
- main
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Push to Forge
env:
FORGE_URL: https://forge.mql5.io/rahuld0890/MQL4/
FORGE_USER: ${{ secrets.FORGE_USER }}
FORGE_PASS: ${{ secrets.FORGE_PASS }}
run: |
git remote add forge https://$FORGE_USER:$FORGE_PASS@forge.mql5.io/rahuld0890/MQL4/ || true
git config --global user.email "rahuld0890@gmail.com"
git config --global user.name "Rahul Dhangar"
git push --force --all forge
git push --force --tags forge