From 45e3eea773833538dce0b287aae2dffc2905f870 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Tue, 27 Aug 2024 19:56:38 +0200 Subject: [PATCH] First try for automatic deployment --- .forgejo/workflows/doc.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.forgejo/workflows/doc.yaml b/.forgejo/workflows/doc.yaml index 58aadfa..e13c7cf 100644 --- a/.forgejo/workflows/doc.yaml +++ b/.forgejo/workflows/doc.yaml @@ -11,3 +11,15 @@ jobs: with: name: documentation path: doc/out/ + deploy: + needs: build-doc + runs-on: docker + container: + image: git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.4 + steps: + - run: mkdir ~/.ssh && echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519 && chmod 0600 ~/.ssh/id_ed25519 && echo "${{ secrets.SSH_KNOWN_HOST }}" > ~/.ssh/known_hosts + - uses: actions/download-artifact@v3 + with: + name: documentation + - run: ls -lah + - run: rsync -e "ssh -p 2342" ./ tkolb.de:/var/www/0fm.de