@echo off
echo ========================================
echo  Push Code ke GitHub
echo ========================================
echo.
echo Repository: https://github.com/mahrizalit/bkdpd
echo.
echo PASTIKAN sudah create repository di GitHub!
echo.
pause

echo.
echo Pushing to GitHub...
git push -u origin feature/unified-transfer-system

echo.
echo ========================================
if %ERRORLEVEL% EQU 0 (
    echo SUCCESS! Code berhasil di-push ke GitHub
    echo.
    echo Cek hasilnya di:
    echo https://github.com/mahrizalit/bkdpd
    echo.
    echo GitHub Actions akan otomatis run CI tests!
    echo Cek di: https://github.com/mahrizalit/bkdpd/actions
) else (
    echo FAILED! Ada error saat push.
    echo.
    echo Kemungkinan penyebab:
    echo 1. Repository GitHub belum dibuat
    echo 2. Authentication gagal - butuh Personal Access Token
    echo.
    echo Cara buat token:
    echo 1. GitHub -^> Settings -^> Developer settings
    echo 2. Personal access tokens -^> Tokens ^(classic^)
    echo 3. Generate new token
    echo 4. Pilih scope: repo
    echo 5. Copy token dan gunakan sebagai password
)
echo ========================================
pause

