More tests needed yayyyyyyyyy
Some checks failed
build / build (push) Successful in 35s
build / deploy (push) Failing after 13s

This commit is contained in:
Jarkko Toivanen 2025-01-25 02:54:02 +02:00
parent feee674e4f
commit b33dc9fa26
Signed by: jt
GPG key ID: 9151B109B73ECAD5

View file

@ -32,6 +32,11 @@ jobs:
echo -e "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_foobar echo -e "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_foobar
echo -e "${{ vars.SSH_PUBLIC_KEY }}" > ~/.ssh/id_foobar.pub echo -e "${{ vars.SSH_PUBLIC_KEY }}" > ~/.ssh/id_foobar.pub
chmod 600 ~/.ssh/* 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 - uses: actions/download-artifact@v3
- name: Send built pages to server - 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 }} run: rsync -e "ssh -o StrictHostKeyChecking=no" -rclthv --exclude .git --delete-after site/ ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}:${{ vars.SSH_PATH }}