Skip to content

Commit 0233c36

Browse files
authored
Update docs (#36)
* prune * fix
1 parent e0b1b13 commit 0233c36

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

docs/hosting-and-deployment/github-pages.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,15 @@
88

99
cf. [khanhicetea/gh-actions-hugo-deploy-gh-pages](https://github.com/khanhicetea/gh-actions-hugo-deploy-gh-pages)
1010

11-
### (1) Create `gh-pages` branch
12-
13-
```sh
14-
remote_branch="gh-pages"
15-
git checkout --orphan "${remote_branch}"
16-
git reset --hard
17-
git commit --allow-empty -m "Initializing gh-pages branch"
18-
git push origin "${remote_branch}"
19-
```
20-
21-
### (2) Create Deploy Key
11+
### (1) Add deploy Key
2212

2313
1. Generate deploy key `ssh-keygen -t rsa -f mkdocs -q -N ""`
2414
2. Go to "Settings > Deploy Keys" of repository.
2515
3. Add your public key within "Allow write access" option.
2616
4. Go to "Settings > Secrets" of repository.
2717
5. Add your private deploy key as `ACTIONS_DEPLOY_KEY`
2818

29-
### (3) Push `.github`
19+
### (2) Push `.github`
3020

3121
```
3222
.github
@@ -36,9 +26,9 @@ git push origin "${remote_branch}"
3626
└── entrypoint.sh
3727
```
3828

39-
### (4) Push commit
29+
### (3) Push commit
4030

41-
When you push commits to master branch, GitHub Actions runs.
31+
When you push commits, GitHub Actions runs.
4232

4333

4434

0 commit comments

Comments
 (0)