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 70861cc commit caa8590
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dev-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
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 +21,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 caa8590

Please sign in to comment.