Skip to content

Deploy to PRATHAM-QA Server #8

Deploy to PRATHAM-QA Server

Deploy to PRATHAM-QA Server #8

name: Deploy to PRATHAM-QA Server
on:
workflow_dispatch:
jobs:
deploy_QA:
#if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Deploy Stack
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.QA_HOST_NAME }}
username: ${{ secrets.QA_USERNAME }}
key: ${{ secrets.QA_EC2_SSH_KEY }}
port: ${{ secrets.QA_PORT }}
script: |
cd ${{ secrets.QA_TARGET_DIR }}
if [ -f .env ]; then
rm .env
fi
echo "${{ secrets.QA_ENV }}" > .env
ls -ltra
./deploy.sh