From 3297ce3d029e3cab5782531fa9a454a3fb6939c0 Mon Sep 17 00:00:00 2001 From: Emin Arslan Date: Sat, 16 Nov 2024 15:49:34 +0300 Subject: [PATCH] Added deploy step --- .gitea/workflows/main-build.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/main-build.yaml b/.gitea/workflows/main-build.yaml index 9594bf4..600567e 100644 --- a/.gitea/workflows/main-build.yaml +++ b/.gitea/workflows/main-build.yaml @@ -19,3 +19,8 @@ jobs: - run: ls -la - name: build run: ./hugo + - name: deploy + run: | + echo "${{ secrets.SSH_KEY }}" > /tmp/id + chmod 600 /tmp/id + scp -oUser=${{secrets.SSH_USER}} -i /tmp/id -r public/* emin.software:/home/${{ secrets.SSH_USER }}/web/web/