Skip to content

Commit

Permalink
Update docs (#36)
Browse files Browse the repository at this point in the history
* prune

* fix
  • Loading branch information
peaceiris authored Apr 25, 2019
1 parent e0b1b13 commit 0233c36
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions docs/hosting-and-deployment/github-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,15 @@

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

### (1) Create `gh-pages` branch

```sh
remote_branch="gh-pages"
git checkout --orphan "${remote_branch}"
git reset --hard
git commit --allow-empty -m "Initializing gh-pages branch"
git push origin "${remote_branch}"
```

### (2) Create Deploy Key
### (1) Add deploy Key

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

### (3) Push `.github`
### (2) Push `.github`

```
.github
Expand All @@ -36,9 +26,9 @@ git push origin "${remote_branch}"
└── entrypoint.sh
```

### (4) Push commit
### (3) Push commit

When you push commits to master branch, GitHub Actions runs.
When you push commits, GitHub Actions runs.



Expand Down

0 comments on commit 0233c36

Please sign in to comment.