diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 9abefc2500982d0214308bd19e224095b1facd0d
parent 713ddcbae0ffd0b4be26f8840a2d9159b5173ad9
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sat, 24 Jul 2021 16:32:42 +0200

Update man.yml
Diffstat:
M.github/workflows/man.yml | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/man.yml b/.github/workflows/man.yml @@ -5,6 +5,8 @@ on: branches: [ master ] pull_request: branches: [ master ] +env: + SSH_AUTH_SOCK: /$RUNNER_TEMP/ssh-agent.sock jobs: man: @@ -16,7 +18,10 @@ jobs: run: sudo apt-get install mandoc - name: Create html from man doc run: mandoc -Thtml man1/diary.1 > man1/diary.1.html + - name: Add ssh key + # https://www.webfactory.de/blog/use-ssh-key-for-private-repositories-in-github-actions + run: | + ssh-agent -a $SSH_AUTH_SOCK > /dev/null + ssh-add - <<< "${{ secrets.SSH_B64 }}" - name: Send html to website - env: - SSH_B64: ${{ secrets.SSH_B64 }} - run: scp -i <(echo $SSH_B64 | base64 -d) man1/diary.1.html hcloud@diary.in0rdr.ch:/home/hcloud/ + run: scp man1/diary.1.html hcloud@diary.in0rdr.ch:/home/hcloud/