Skip to content

Fix workflow and docs #212

Fix workflow and docs

Fix workflow and docs #212

name: Deploy to staging env
on:
push:
branches:
- 'develop'
paths:
- 'api/**'
- '.github/workflows/*'
- './docker-compose.yml'
- './deploy/**'
- './.env*'
jobs:
deploy:
name: Deploy to staging env
runs-on: ubuntu-22.04
steps:
- name: Executing remote SSH commands
if: github.ref == 'refs/heads/develop'
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEV_SERVER_IP }}
username: ${{ secrets.DEV_SERVER_SSH_USERNAME }}
key: ${{ secrets.DEV_SERVER_SSH_KEY }}
script: "/root/seismic-risc/deploy/pull.sh"