Skip to content

Merge pull request #222 from sohaibiftikhar/sohaib/fix/isochrone-cost… #21

Merge pull request #222 from sohaibiftikhar/sohaib/fix/isochrone-cost…

Merge pull request #222 from sohaibiftikhar/sohaib/fix/isochrone-cost… #21

Workflow file for this run

name: Deploy to host server
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'src/**'
- 'public/**'
- 'package*.json'
- '.env'
- 'jsconfig.json'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20.x'
- name: 🔧 Create build
run: |
npm install
npm run build
- name: 🚀 Deploy
run: |
eval $(ssh-agent -s)
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
rsync -r --delete -e "ssh -p 23432 -o StrictHostKeyChecking=no" ./build/ ${{ vars.HOST_USERNAME }}@${{ vars.HOST_IP }}:${{ vars.HOST_TARGET_DIR }}