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 <[email protected]>
  • Loading branch information
jecluis committed Mar 30, 2024
1 parent 1797f5a commit 4ff2dd4
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/update-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,28 @@ 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-add ~/.ssh/github
- name: debug
run: |
cat ~/.ssh/config
- name: Update docs repository
run: |
Expand Down

0 comments on commit 4ff2dd4

Please sign in to comment.