Skip to content

Merge pull request #18 from MetalBotics/develop #14

Merge pull request #18 from MetalBotics/develop

Merge pull request #18 from MetalBotics/develop #14

Workflow file for this run

name: Deploy to MetalFiles Server
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: SSH & deploy
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SERVER_HOST }}
username: ubuntu
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd ~/filetransfer
git pull origin main
npm install
npm run build
pm2 restart MetalFiles