From 68a60be6746623780955c2a630aff9b0878dc22c Mon Sep 17 00:00:00 2001 From: vanten-s Date: Mon, 5 Aug 2024 00:11:08 +0200 Subject: [PATCH] Made deployment action more readable --- .forgejo/workflows/deploy.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 97adb8a..f8a5c77 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -10,4 +10,7 @@ jobs: - run: apk add openssh - run: git clone https://forgejo.vanten-s.com/vanten-s/vanten-s.com src - run: hugo -s src - - run: eval $(ssh-agent -s) && echo "${{ secrets.KEY }}" | ssh-add - && scp -o "StrictHostKeyChecking=no" -P 24 -r src/public svante@vanten-s.com:nginx-docker/vanten-s.com/ + - run: mkdir $HOME/.ssh + - run: echo "${{ secrets.KEY }}" > $HOME/.ssh/id_ed25519 + - run: chmod 0600 $HOME/.ssh/id_ed25519 + - run: scp -o "StrictHostKeyChecking=no" -P 24 -r src/public svante@vanten-s.com:nginx-docker/vanten-s.com/