Skip to content

fix: add save stogage constraint #92

fix: add save stogage constraint

fix: add save stogage constraint #92

Workflow file for this run

name: Deploy Backend on Development Server
on:
push:
branches:
- main
env:
HOST: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
KEY: ${{ secrets.SSH_KEY }}
PORT: ${{ secrets.PORT }}
INSTANCE_PATH: ./backend-dev
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Send
uses: appleboy/scp-action@master
with:
host: ${{ env.HOST }}
username: ${{ env.USERNAME }}
key: ${{ env.KEY }}
port: ${{ env.PORT }}
source: "."
target: ${{ env.INSTANCE_PATH }}
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ env.HOST }}
username: ${{ env.USERNAME }}
key: ${{ env.KEY }}
port: ${{ env.PORT }}
script: |
cd ${{ env.INSTANCE_PATH }}
make build-dev