Skip to content

Merge pull request #10 from Patcire/dependabot/composer/league/common… #7

Merge pull request #10 from Patcire/dependabot/composer/league/common…

Merge pull request #10 from Patcire/dependabot/composer/league/common… #7

Workflow file for this run

name: CDeploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install sshpass
run: sudo apt-get install -y sshpass
- name: Set execute permissions on deploy.sh
run: sshpass -p ${{ secrets.VPS_PASSWORD }} ssh -o StrictHostKeyChecking=no [email protected] 'chmod +x /root/tinyquestions-backend/deploy.sh'
- name: Copy files via SCP
run: sshpass -p ${{ secrets.VPS_PASSWORD }} scp -o StrictHostKeyChecking=no -r ./* [email protected]:/root/tinyquestions-backend
- name: Execute deploy script
run: sshpass -p ${{ secrets.VPS_PASSWORD }} ssh -o StrictHostKeyChecking=no [email protected] 'bash -s' < ./deploy.sh