From b00d3f7d042a670ef67da4b2e6a68ee86d982ec4 Mon Sep 17 00:00:00 2001 From: Emin Arslan Date: Sat, 16 Nov 2024 15:53:03 +0300 Subject: [PATCH] I'm just trying various things to see how ssh auth works in this env --- .gitea/workflows/main-build.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/main-build.yaml b/.gitea/workflows/main-build.yaml index 600567e..4fec62d 100644 --- a/.gitea/workflows/main-build.yaml +++ b/.gitea/workflows/main-build.yaml @@ -15,12 +15,14 @@ jobs: - name: Get hugo run: wget https://github.com/gohugoio/hugo/releases/download/v0.131.0/hugo_extended_0.131.0_linux-amd64.tar.gz -O hugo.tar.gz - run: tar xzvf hugo.tar.gz - - run: pwd - - run: ls -la + - run: id + - 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/ + mkdir -p ~/.ssh/ + ssh-keyscan emin.software > ~/.ssh/known_hosts + scp -oUser=${{secrets.SSH_USER}} -i /tmp/id -r public/* emin.software:/home/${{ secrets.SSH_USER }}/web/web/