Skip to content

Workflow file for this run

# This is a basic workflow to automatically build a Svelte app and deploy it to GitHub Pages
name: Deploy to Remote Server
on:
push:
branches: [ master, main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install and Build
run: |
npm install
npm run build
- name: Deploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSHHOST }}
username: ${{ secrets.SSHUSERNAME }}
password: ${{ secrets.SSHPASSWORD }}
key: ${{ secrets.SSHKEY }}
debug: true
script: cd /opt/la-movement-directory-web && source ~/.bashrc && export PATH="/root/.nvm/versions/node/v20.5.1/bin/:$PATH" && git pull && npm install && npm run build && systemctl restart ladirectoryfrontend