From fa961d18f7bfcc61ad9c03aba645dc246c265107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 25 Nov 2023 13:26:52 +0100 Subject: [PATCH] actions test --- .forgejo/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 2f0f4db..2438e36 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -10,11 +10,13 @@ on: jobs: deploy: runs-on: ubuntu-latest - if: secrets.SSH_PRIVATE_KEY != '' + if: secrets.SSH_PRIVATE_KEY != '' and secrets.SSH_HOST_KEY != '' steps: - uses: https://code.forgejo.org/actions/checkout@v4 - run: mkdir ~/.ssh + - run: echo "${{ secrets.SSH_HOST_KEY }}" > ~/.ssh/known_hosts + - run: chmod 600 ~/.ssh/known_hosts - run: apt update && apt install -y openssh-client rsync - run: eval $(ssh-agent -s) && echo "${{ secrets.SSH_PRIVATE_KEY }}" | ssh-add - - run: rsync -avzr --delete ${{ github.workspace }}/ hosting187597@hosting187597.a2f96.netcup.net:~/wordpress-test.event-federation.eu/wp-content/plugins/