File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
docs/hosting-and-deployment Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change 8
8
9
9
cf. [ khanhicetea/gh-actions-hugo-deploy-gh-pages] ( https://github.com/khanhicetea/gh-actions-hugo-deploy-gh-pages )
10
10
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
22
12
23
13
1 . Generate deploy key ` ssh-keygen -t rsa -f mkdocs -q -N "" `
24
14
2 . Go to "Settings > Deploy Keys" of repository.
25
15
3 . Add your public key within "Allow write access" option.
26
16
4 . Go to "Settings > Secrets" of repository.
27
17
5 . Add your private deploy key as ` ACTIONS_DEPLOY_KEY `
28
18
29
- ### (3 ) Push ` .github `
19
+ ### (2 ) Push ` .github `
30
20
31
21
```
32
22
.github
@@ -36,9 +26,9 @@ git push origin "${remote_branch}"
36
26
└── entrypoint.sh
37
27
```
38
28
39
- ### (4 ) Push commit
29
+ ### (3 ) Push commit
40
30
41
- When you push commits to master branch , GitHub Actions runs.
31
+ When you push commits, GitHub Actions runs.
42
32
43
33
44
34
You can’t perform that action at this time.
0 commit comments