This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tukar nama branch utama kepada main (jika masih master)
git branch -M main
# Push semua commit ke GitHub
git push -u origin main
```
> **Nota**: Gantikan `codepaul/codepaul.git` dengan URL repositori anda yang sebenar.
---
## ✅ Semakan
Selepas push, buka repositori di GitHub – anda akan melihat semua folder dan fail, termasuk `.github/workflows/ci-cd.yml`. Setiap kali anda melakukan `git push` ke branch `main`, GitHub Actions akan menjalankan pipeline CI/CD yang telah ditetapkan.
---
## 🔐 Menyediakan Rahsia (Secrets) untuk Deployment (Pilihan)
Jika anda ingin mengaktifkan langkah deploy dalam GitHub Actions (contohnya ke Vercel, Render, dll.), anda perlu menambah **secrets** di repositori GitHub:
1. Buka repositori di GitHub.
2. Pergi ke **Settings** → **Secrets and variables** → **Actions**.
3. Klik **New repository secret**.
4. Tambah nama (contoh: `VERCEL_TOKEN`) dan nilainya (token daripada Vercel).
5. Dalam fail workflow, gunakan `${{ secrets.VERCEL_TOKEN }}` untuk merujuknya.
- **`.gitignore`** – Fail dan direktori yang dikecualikan
- **`README.md`** – Dokumentasi projek
- **`LICENSE`** – Lesen MIT
Pastikan semua fail telah di-commit sebelum push:
```bash
git add .
git commit -m "Complete full-stack project with CI/CD"
git push
```
---
## 🧪 Uji Pipeline
Selepas push, pergi ke tab **Actions** di repositori GitHub anda. Anda akan melihat workflow `CI/CD Pipeline` sedang berjalan. Klik untuk melihat log. Jika semuanya hijau, tahniah – CI/CD anda berfungsi!
---
## 🎯 Seterusnya
- **Kembangkan projek**: Tambah pangkalan data (MongoDB, PostgreSQL), autentikasi, atau ujian.
- **Deploy sebenar**: Gunakan Render untuk backend dan Vercel untuk frontend.
- **Sesuaikan domain**: Beli domain dan pautkan ke perkhidmatan hosting.
Jika anda memerlukan bantuan untuk mana-mana langkah di atas (misalnya menulis konfigurasi deployment untuk Render atau Vercel dalam GitHub Actions), beritahu saya – saya akan bantu!
**Selamat membangun!** 🚀
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create Github repo #234
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Create Github repo #234
Filter by extension
Viewed files
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing