commit fad52532cf53bd32cca4be623f670b560831f7d7 parent 36d6913bc6da46f8393520fd6573c2d156ae0ec7 Author: Andreas Gruhler <agruhl@gmx.ch> Date: Mon, 26 Jul 2021 08:30:50 +0200 Update man.yml Diffstat:
M | .github/workflows/man.yml | | | 18 | +++++++----------- |
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/.github/workflows/man.yml b/.github/workflows/man.yml @@ -16,14 +16,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 - env: - SSH_AUTH_SOCK: /tmp/ssh-agent.sock - # 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 - <<< $(echo "${{ secrets.SSH_B64 }}" | base64 -d) - - name: Send html to website - env: - SSH_AUTH_SOCK: /tmp/ssh-agent.sock - run: scp -o StrictHostKeyChecking=no man1/diary.1.html hcloud@diary.in0rdr.ch:/home/hcloud/diary-website/man.html + - name: Commit new man doc + - run: | + git config user.name github-actions + git config user.email github-actions@github.com + git add man1/diary.1.html + git commit -m "refresh diary manpage" + git push