Skip to content

Commit 93d9359

Browse files
committed
now that we verified we need it, re-introduce ssh-agent stuff to push
1 parent a9965f7 commit 93d9359

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/deploy-gh-pages.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,11 @@ jobs:
7070
date >> README.md
7171
git add .
7272
git remote add sshtarget [email protected]:zml/docs
73+
eval "$(ssh-agent -s)"
74+
ssh-keyscan -t ed25519 github.com > ~/.ssh/known_hosts
75+
ssh-add - <<< "${{ secrets.DEPLOY_KEY }}"
7376
git commit -m "Update GitHub Pages"
7477
git push sshtarget docs
75-
76-
77-
# try the x-access url
78-
# the token only has read access!!!!
78+
# alternative with the x-access url
79+
# but: the token only has read access!!!!
7980
# git push https://x-access-token:${{ secrets.ORG_PAT }}@github.com/zml/zml.git docs

0 commit comments

Comments
 (0)