Files
highland_games_website/.github/workflows/deploy.yml
T
Mathew 0c88206a23
Deploy to VPS / deploy (push) Has been cancelled
(Update) Update projet + todo
2026-06-22 23:32:18 +02:00

31 lines
681 B
YAML

name: Deploy to VPS
on:
push:
branches: [master]
workflow_dispatch:
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@v1.2.0
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
set -e
cd /var/www/highland
git pull origin master
npm ci
npm run build
pm2 restart highland --update-env
pm2 save