You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update documentation: gh-pages now contains build files only
- Updated README.md to clarify gh-pages branch structure
- Updated DEPLOY_MANUAL.md with detailed workflow explanation
- Updated DEPLOYMENT_WORKFLOW.md with clean deploy process
- Updated QUICK_REFERENCE.md with simplified commands
- All documentation now emphasizes that gh-pages contains only build output
Copy file name to clipboardExpand all lines: docs/DEPLOY_MANUAL.md
+79-25Lines changed: 79 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
5
5
Dokumentasi ini menjelaskan cara melakukan deploy manual untuk website www.konxc.space menggunakan script yang telah disediakan. Script ini dibuat sebagai alternatif dari GitHub Actions karena masalah billing.
6
6
7
+
**Penting**: Branch `gh-pages`**hanya berisi hasil build** dari folder `dist/`, tidak ada file source code.
8
+
7
9
## 🛠️ Prerequisites
8
10
9
11
Sebelum melakukan deploy, pastikan Anda telah menginstall:
@@ -22,7 +24,7 @@ Sebelum melakukan deploy, pastikan Anda telah menginstall:
22
24
#### Untuk Linux/macOS:
23
25
```bash
24
26
# Jalankan script deploy
25
-
./scripts/deploy-manual.sh
27
+
bash ./scripts/deploy-manual.sh
26
28
```
27
29
28
30
#### Untuk Windows (Git Bash/WSL):
@@ -31,6 +33,22 @@ Sebelum melakukan deploy, pastikan Anda telah menginstall:
31
33
./scripts/deploy-manual.bat
32
34
```
33
35
36
+
### Apa yang Dilakukan Script?
37
+
38
+
Script akan secara otomatis:
39
+
1. ✅ Checkout ke branch `main` dan pull latest changes
40
+
2. ✅ Install dependencies dengan `pnpm install`
41
+
3. ✅ Build project dengan `pnpm run build`
42
+
4. ✅ Copy hasil build ke temporary directory
43
+
5. ✅ Checkout ke branch `gh-pages` (atau buat jika belum ada)
44
+
6. ✅ **Hapus semua file lama** di gh-pages
45
+
7. ✅ **Copy hanya hasil build** dari temporary directory
46
+
8. ✅ Tambahkan file `.nojekyll` untuk GitHub Pages
47
+
9. ✅ Commit dan push ke branch `gh-pages`
48
+
10. ✅ Kembali ke branch `main`
49
+
50
+
**Hasil**: Branch `gh-pages` hanya berisi file-file hasil build (HTML, CSS, JS, assets) tanpa source code.
51
+
34
52
### Metode 2: Manual Step-by-Step
35
53
36
54
Jika script tidak berfungsi, Anda bisa melakukan deploy secara manual:
@@ -40,28 +58,37 @@ Jika script tidak berfungsi, Anda bisa melakukan deploy secara manual:
40
58
git checkout main
41
59
git pull origin main
42
60
43
-
# 2. Install dependencies
61
+
# 2. Install dependencies dan build
44
62
pnpm install
45
-
46
-
# 3. Build project
47
63
pnpm run build
48
64
49
-
# 4. Switch ke branch gh-pages (atau buat jika belum ada)
0 commit comments