Skip to content

Merge pull request #725 from INCENDE/feature/navigation-based-on-hist… #1499

Merge pull request #725 from INCENDE/feature/navigation-based-on-hist…

Merge pull request #725 from INCENDE/feature/navigation-based-on-hist… #1499

Workflow file for this run

name: Deploy to staging
on:
push:
branches:
- dev
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy staging box
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script_stop: true
script: |
cd /opt/staging_web || { echo "No directory found"; exit 1; }
git pull origin dev
npm ci
npm run build
rm -r /var/www/html/staging.holodex.net/*
cp -r dist/* /var/www/html/staging.holodex.net/