From b33dc9fa26d5b019faa85d1e423a451f16253083 Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Sat, 25 Jan 2025 02:54:02 +0200 Subject: [PATCH] More tests needed yayyyyyyyyy --- .forgejo/workflows/duuni.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.forgejo/workflows/duuni.yaml b/.forgejo/workflows/duuni.yaml index 85ac94f..ca80b23 100644 --- a/.forgejo/workflows/duuni.yaml +++ b/.forgejo/workflows/duuni.yaml @@ -32,6 +32,11 @@ jobs: echo -e "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_foobar echo -e "${{ vars.SSH_PUBLIC_KEY }}" > ~/.ssh/id_foobar.pub chmod 600 ~/.ssh/* + - name: Test SSH connection + run: | + echo -e 'Testing SSH by connecting to ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}...' + ssh -v ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }} exit 0 + echo -e 'Established SSH connection!' - uses: actions/download-artifact@v3 - name: Send built pages to server run: rsync -e "ssh -o StrictHostKeyChecking=no" -rclthv --exclude .git --delete-after site/ ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}:${{ vars.SSH_PATH }}