Skip to content

Commit

Permalink
.github: debug docs workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Joao Eduardo Luis <joao@1e3ms.io>
  • Loading branch information
jecluis committed Mar 30, 2024
1 parent 1797f5a commit c2e18eb
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/update-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,30 @@ jobs:
steps:
- name: Prepare environment
env:
GITHUB_TOKEN: ${{ secrets.DOCS_DEPLOY_SECRET }}
GITHUB_KEY: ${{ secrets.DOCS_DEPLOY_SECRET }}
run: |
mkdir -p ${HOME}/.ssh || true
echo -e "${GITHUB_KEY}\n" > ${HOME}/.ssh/github
chmod 700 ${HOME}/.ssh || exit 1
cat <<EOF>${HOME}/.ssh/github
${GITHUB_KEY}
EOF
chmod 600 ${HOME}/.ssh/github
cat <<EOF>${HOME}/.ssh/config
Host github
Hostname github.com
IdentityFile ~/.ssh/github
User git
Hostname github.com
IdentityFile ~/.ssh/github
User git
EOF
chmod 600 ${HOME}/.ssh/config
ssh-agent -a /tmp/ssh-auth.sock || exit 1
export SSH_AUTH_SOCK=/tmp/ssh-auth.sock
ssh-add ~/.ssh/github
- name: debug
run: |
cat ~/.ssh/config
- name: Update docs repository
run: |
Expand Down

0 comments on commit c2e18eb

Please sign in to comment.