Skip to content

Commit

Permalink
fix: deploy key
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Apr 25, 2019
1 parent 83855e5 commit e0b1b13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ workflow "Main workflow" {
action "Build and deploy with MkDocs" {
uses = "./.github/mkdocs/"
secrets = [
"GITHUB_ACTIONS_DEPLOY_KEY"
"ACTIONS_DEPLOY_KEY"
]
}
2 changes: 1 addition & 1 deletion .github/mkdocs/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -ex -o pipefail # -x: is for debugging

mkdir /root/.ssh
ssh-keyscan -t rsa github.com > /root/.ssh/known_hosts
echo "${GITHUB_ACTIONS_DEPLOY_KEY}" > /root/.ssh/id_rsa
echo "${ACTIONS_DEPLOY_KEY}" > /root/.ssh/id_rsa
chmod 400 /root/.ssh/id_rsa

mkdocs build
Expand Down
2 changes: 1 addition & 1 deletion docs/hosting-and-deployment/github-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ git push origin "${remote_branch}"
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 `GITHUB_ACTIONS_DEPLOY_KEY`
5. Add your private deploy key as `ACTIONS_DEPLOY_KEY`

### (3) Push `.github`

Expand Down

0 comments on commit e0b1b13

Please sign in to comment.