eolas-api/.forgejo/workflows/deploy.yaml
thomasabishop ec0ff1b541
All checks were successful
Deploy eolas-api / deploy (push) Successful in 8s
infra: debug - attempt rm stale files again
2025-10-05 20:08:37 +01:00

15 lines
541 B
YAML

name: Deploy eolas-api
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
echo "${{ secrets.VPS_DEPLOY_USER_SSH_KEY }}" > /tmp/ssh_key
chmod 600 /tmp/ssh_key
ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{ vars.VPS_DEPLOY_USER }} "bash -c 'cd /var/www/eolas-api && rm -rf * .[^.]*'"
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r ./* ${{ vars.VPS_DEPLOY_USER }}:/var/www/eolas-api/
rm /tmp/ssh_key