diff options
author | n-peugnet <n.peugnet@free.fr> | 2022-03-25 21:21:08 +0100 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2022-03-25 21:21:08 +0100 |
commit | 980c153e5157073a397be7c2b1e1e43fecdbb6df (patch) | |
tree | 934e93e633dc822c326eabe79e3180f012bf8e5c /.github | |
parent | 9d59630199301a75a0fb8446e0d55b98944e19c2 (diff) | |
download | club1-docs-980c153e5157073a397be7c2b1e1e43fecdbb6df.tar.gz club1-docs-980c153e5157073a397be7c2b1e1e43fecdbb6df.zip |
github action run ssh agent to load key
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c9fc629..d2aee7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,11 +13,17 @@ jobs: pre-build-command: pip install myst-parser sphinx-rtd-theme docs-folder: . - name: Install RSA key + env: + SSH_AUTH_SOCK: /tmp/ssh_agent.sock run: | - mkdir .ssh - chmod 700 .ssh - echo "${{ secrets.RSA_KEY }}" > .ssh/id_rsa - chmod 600 .ssh/id_rsa - echo "club1.fr ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBC64tjZ1WjxMMoGeWiipApfCAaQe1sP/YFoNWYtckXV7XfFFKsBf70SHUw/oPjVZ1sdwcIL8wsH8Q00oYMIv7M=" > .ssh/known_hosts + mkdir $HOME/.ssh + chmod 700 $HOME/.ssh + echo "${{ secrets.RSA_KEY }}" > $HOME/.ssh/id_rsa + chmod 600 $HOME/.ssh/id_rsa + echo "club1.fr ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBC64tjZ1WjxMMoGeWiipApfCAaQe1sP/YFoNWYtckXV7XfFFKsBf70SHUw/oPjVZ1sdwcIL8wsH8Q00oYMIv7M=" > $HOME/.ssh/known_hosts + ssh-agent -a $SSH_AUTH_SOCK > /dev/null + ssh-add $HOME/.ssh/id_rsa - name: Publish + env: + SSH_AUTH_SOCK: /tmp/ssh_agent.sock run: make publish USER=docs |