-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPUSH.txt
More file actions
49 lines (38 loc) · 2.13 KB
/
Copy pathPUSH.txt
File metadata and controls
49 lines (38 loc) · 2.13 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
HOW TO PUSH THIS PORTFOLIO TO GITHUB
====================================
This repo already has one clean commit. You only need to run it from a machine/account
that can authenticate as your GitHub user.
WHY IT WASN'T PUSHED AUTOMATICALLY:
The machine it was built on has an SSH key for another account. A GitHub SSH key can
belong to only one account, so use the key that belongs to your GitHub user.
------------------------------------------------------------
STEP 1 - Create the repo on GitHub (skip if it already exists)
------------------------------------------------------------
Sign in to GitHub and go to: https://github.com/new
- Repository name : your choice
- Visibility : Public
- Do NOT add a README / .gitignore / license (this repo already has them)
------------------------------------------------------------
STEP 2 - Point this repo at it and push
------------------------------------------------------------
Open a terminal in this folder, then (SSH):
git remote add origin git@github.com:YOUR_USERNAME/YOUR_REPO.git
git push -u origin main
Or over HTTPS with a personal access token:
git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git
git push -u origin main
# username: YOUR_USERNAME password: <your personal access token>
------------------------------------------------------------
STEP 3 - Turn on GitHub Pages
------------------------------------------------------------
Repo -> Settings -> Pages -> Build and deployment -> Source: "GitHub Actions"
The included workflow (.github/workflows/deploy.yml) builds and publishes on every
push to main. Live URL: https://kkjj.me/
IMPORTANT - for the custom domain, keep VITE_BASE: /
- Custom domain (kkjj.me) -> keep VITE_BASE: /
- Other GitHub Pages setups -> edit .github/workflows/deploy.yml accordingly
------------------------------------------------------------
EASIEST ALTERNATIVE - Vercel (no base-path juggling)
------------------------------------------------------------
Import the repo at https://vercel.com/new -> it auto-detects Vite -> Deploy.
Serves from "/", so no VITE_BASE change is needed. See DEPLOY.md for more.