diff --git a/.github/main.workflow b/.github/main.workflow index c5af1eec..7690218e 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -6,6 +6,6 @@ workflow "Main workflow" { action "Build and deploy with MkDocs" { uses = "./.github/mkdocs/" secrets = [ - "GITHUB_ACTIONS_DEPLOY_KEY" + "ACTIONS_DEPLOY_KEY" ] } diff --git a/.github/mkdocs/entrypoint.sh b/.github/mkdocs/entrypoint.sh index 640a525a..8c524af8 100755 --- a/.github/mkdocs/entrypoint.sh +++ b/.github/mkdocs/entrypoint.sh @@ -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 diff --git a/docs/hosting-and-deployment/github-pages.md b/docs/hosting-and-deployment/github-pages.md index e0c2f9e9..0f791ccb 100644 --- a/docs/hosting-and-deployment/github-pages.md +++ b/docs/hosting-and-deployment/github-pages.md @@ -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`