feat: implement stripe payout logic for seller who can payout on his … #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up SSH key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Deploy to server | |
run: | | |
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF' | |
cd /home/nata_tchikhinashvili/ | |
source venv/bin/activate | |
cd /home/nata_tchikhinashvili/accounts_G2 | |
git pull --strategy-option theirs | |
git checkout dev | |
pip3 install -r requirements.txt | |
deactivate | |
sudo systemctl daemon-reload | |
sudo systemctl restart celery | |
sudo systemctl restart celery-beats | |
EOF | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} |