-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.bat
More file actions
31 lines (24 loc) · 1.03 KB
/
Copy pathdeploy.bat
File metadata and controls
31 lines (24 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
chcp 65001 >nul
echo [*] Perevirka Git depozytoriyu...
if not exist .git (
echo [!] Initsializuyemo novyi git...
git init
git branch -M main
)
echo [*] Nalashhtuvannya adresu repozytoriyu (origin)...
git remote add origin https://github.com/DeFexNN/helensi_book_reader.git 2>nul
git remote set-url origin https://github.com/DeFexNN/helensi_book_reader.git
echo [*] Stvoryuyemo bild (zbyrayemo statychni faily v papku public/api)...
node build.js
echo [*] Dodayemo faily do git...
git add .
echo [*] Zberihayemo zminy (Source code u hilku main)...
git commit -m "Deploy update: UI, memory and reading modes"
echo [*] Vidpravlyayemo kod na GitHub (main branch)...
git push -u origin main
echo [*] Robymo statychnyi deploy papky "public" na hilku gh-pages...
call npx -y gh-pages -d public -e . -m "Auto-deploy static build for GitHub Pages"
echo [*] Done! Deploy zaversheno.
echo [!] PAMYATAYTE: U nalashtuvannyakh repozytoriyu (Settings -^> Pages) potribno obraty dzherelom (Source) hilku "gh-pages" ta papku "/ (root)".
pause