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