name: Deploy to Production on: push: branches: - main jobs: deploy: name: Deploy to 192.168.1.190 runs-on: ubuntu-latest steps: - name: Deploy via SSH uses: appleboy/ssh-action@v1.2.2 with: host: ${{ secrets.DEPLOY_HOST }} username: ${{ secrets.DEPLOY_USER }} key: ${{ secrets.DEPLOY_SSH_KEY }} port: ${{ secrets.DEPLOY_PORT || 22 }} script_stop: true command_timeout: 10m script: | cd ${{ secrets.DEPLOY_PATH }} bash scripts/deploy.sh --build