Skip to content

feat: Misc fixes and small bits of content (#279) #5

feat: Misc fixes and small bits of content (#279)

feat: Misc fixes and small bits of content (#279) #5

Workflow file for this run

name: Deploy to 2004scape.org website
on:
push:
branches: [ main ]
paths:
- '.github/workflows/deploy-master.yml'
- 'public/**'
- 'src/lostcity/web/**'
- 'view/**'
workflow_dispatch:
concurrency:
group: deploy-master
cancel-in-progress: true
# pm2 start npm --name "master" -- run web
jobs:
deploy-master:
name: Deploy to Master server
runs-on: ubuntu-latest
steps:
- name: Executing commands over SSH
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_MASTER_HOST }}
username: ${{ secrets.SSH_MASTER_USER }}
key: ${{ secrets.SSH_MASTER_KEY }}
port: ${{ secrets.SSH_MASTER_PORT }}
script: |
cd master
pm2 stop master
git pull
npm ci
pm2 start master