Skip to content

Commit

Permalink
ci/cd secrets bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
avaneeshk098 authored Jan 4, 2025
1 parent 6866d9b commit ba5c712
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ jobs:
password: ${{ secrets.PASSWORD }}
source: "."
target: "~/core"

- name: Create .env file
run: |
touch .env
echo "${{secrets.MONGO_URI}}" >> .env

- name: Executing remote commands
uses: appleboy/ssh-action@master
with:
Expand All @@ -34,6 +30,8 @@ jobs:
password: ${{ secrets.PASSWORD }}
script: |
cd ~/core
touch .env
echo "${{secrets.MONGO_URI}}" >> .env
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
yarn && yarn build
Expand Down

0 comments on commit ba5c712

Please sign in to comment.