-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGITHUB_DEPLOY.txt
More file actions
112 lines (81 loc) · 5.34 KB
/
GITHUB_DEPLOY.txt
File metadata and controls
112 lines (81 loc) · 5.34 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
╔══════════════════════════════════════════════════════════════╗
║ DEPLOY TO GITHUB PAGES ║
╚══════════════════════════════════════════════════════════════╝
Deploy your app for free on GitHub Pages.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 1: Create GitHub Repository
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Go to: https://github.com/
2. Sign up or log in
3. Click "New repository"
4. Name it: mobile-car-wash-manager
5. Make it Public (required for free Pages)
6. Click "Create repository"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 2: Upload Your Code
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OPTION A: Using GitHub Desktop (Easiest)
────────────────────────────────────────
1. Download: https://desktop.github.com/
2. Install and sign in
3. File → Add Local Repository
4. Select this Application folder
5. Click "Publish repository"
6. Done!
OPTION B: Using Git Command Line
────────────────────────────────
1. Open terminal in this folder
2. Type these commands:
git init
git add .
git commit -m "Initial commit"
git branch -M main
git remote add origin https://github.com/YOUR-USERNAME/mobile-car-wash-manager.git
git push -u origin main
(Replace YOUR-USERNAME with your GitHub username)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 3: Enable GitHub Pages
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Go to your repository on GitHub
2. Click "Settings" tab
3. Click "Pages" in left sidebar
4. Under "Source", select "GitHub Actions"
5. Save
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
STEP 4: Deploy
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The workflow file (.github/workflows/deploy.yml) is already created!
Just push your code:
git add .
git commit -m "Deploy to Pages"
git push
GitHub will automatically:
• Build your app
• Deploy it
• Give you a URL like: https://YOUR-USERNAME.github.io/mobile-car-wash-manager/
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
UPDATING:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
To update your live app:
1. Make changes to your code
2. git add .
3. git commit -m "Update app"
4. git push
5. GitHub auto-deploys in 2-3 minutes!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
REVERTING:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Go to your repository
2. Click "Actions" tab
3. Find the previous successful deployment
4. Click "Re-run jobs"
5. Or use git to revert to a previous commit
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 TIPS:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Free for public repositories
• Auto-deploys on every push
• Version history in git
• Easy to revert
• Custom domain supported
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━