Skip to content

Merge pull request #731 from HolodexNet/i18n #1521

Merge pull request #731 from HolodexNet/i18n

Merge pull request #731 from HolodexNet/i18n #1521

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/