fix: try again to run Forgejo deploy action
Some checks failed
Deploy Blog / deploy (push) Failing after 42s

This commit is contained in:
Thomas Bishop 2025-07-08 16:59:23 +01:00
parent 2233c02398
commit 1fcc9c21b0

View file

@ -57,12 +57,10 @@ jobs:
- run: npm run build:posts
- run: npm run build
- name: Copy files via SCP
uses: appleboy/scp-action@v0.1.4
with:
host: localhost
username: thomas
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "dist/*"
target: "/var/www/systemsobscure.blog/"
strip_components: 1
- name: Deploy via SSH
run: |
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /tmp/ssh_key
chmod 600 /tmp/ssh_key
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no thomas@localhost "rm -rf /var/www/systemsobscure.blog/*"
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r dist/* thomas@localhost:/var/www/systemsobscure.blog/
rm /tmp/ssh_key