Skip to content

Commit

Permalink
Update dev-server-deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhilashKD authored Feb 12, 2025
1 parent ff3207d commit ec57110
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/dev-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ on:
push:
branches:
- release-1.1.0

jobs:
TEKDI-DEV-DEPLOYMENT:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Extract Branch Name
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV

- name: Deploy Stack
uses: appleboy/ssh-action@master
with:
Expand All @@ -18,8 +22,9 @@ jobs:
script: |
cd ${{ secrets.TARGET_DIR_DEV }}
if [ -f .env ]; then
rm .env
rm .env
fi
echo "${{ secrets.DEV_ENV }}" > .env
ls -ltra
./deploy.sh
chmod +x deploy.sh
./deploy.sh ${{ env.BRANCH_NAME }}

0 comments on commit ec57110

Please sign in to comment.