Skip to content

Merge pull request #9 from ThomasLdev/test/ci_steps #7

Merge pull request #9 from ThomasLdev/test/ci_steps

Merge pull request #9 from ThomasLdev/test/ci_steps #7

Workflow file for this run

name: Instabot Deployment
on:
push:
branches:
- main
release:
types: [ published ]
jobs:
deploy:
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}
EXCLUDE: "/dist/, /node_modules/, /vendor/, /var/"
SCRIPT_AFTER: |
ls -lah
echo $RSYNC_STDOUT