Skip to content

Deploy to dev-scp on Tekdi #38

Deploy to dev-scp on Tekdi

Deploy to dev-scp on Tekdi #38

name: Deploy to dev-scp on Tekdi
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Deploy Stack
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_NAME_PRATHAM_DEV }}
username: ${{ secrets.USERNAME_PRATHAM_DEV }}
key: ${{ secrets.EC2_SSH_KEY_PRATHAM_DEV }}
port: ${{ secrets.PORT_PRATHAM_DEV }}
script: |
cd ${{ secrets.TARGET_DIR_PRATHAM_DEV }}
if [ -f .env ]; then
rm .env
fi
echo "${{ secrets.DEV_ENV }}" > .env
ls -ltra
./deploy.sh