Skip to content

Commit f1b0bbd

Browse files
committed
fix: Fix the Gen java docs workflow by fixing auth
1 parent 13c7a91 commit f1b0bbd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/gen-java-docs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ jobs:
2828
# Publishes Javadocs to GitHub Pages by pushing to `gh-pages` branch
2929
- name: Deploy Javadocs to GitHub Pages
3030
run: |
31+
mkdir -p ~/.ssh
32+
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
33+
chmod 600 ~/.ssh/id_rsa
34+
ssh-keyscan github.com >> ~/.ssh/known_hosts
3135
git config --global user.name 'github-actions[bot]'
3236
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
3337
mvn scm-publish:publish-scm
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)