Skip to content

cd

cd #70

Workflow file for this run

name: cd
on:
workflow_run:
workflows: ["ci-web", "ci-server", "ci-config"]
types:
- completed
workflow_dispatch:
jobs:
cd:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: SSH into VPS
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PASSWORD }}
script: |
cd var/www/tidytube-backend
git pull
chmod +x ./deploy.sh
./deploy.sh