mirror of
https://github.com/hazemKrimi/touch-programming.git
synced 2026-05-01 18:20:26 +00:00
Add env to client setup
This commit is contained in:
@@ -21,6 +21,7 @@ jobs:
|
|||||||
- name: Build client
|
- name: Build client
|
||||||
run: |
|
run: |
|
||||||
cd client
|
cd client
|
||||||
|
echo "VITE_API_URL=https://touch-programming.hazemkrimi.tech/api" > .env.production
|
||||||
npm install
|
npm install
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
@@ -43,9 +44,9 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
# mkdir -p ~/.ssh
|
||||||
echo "$SSH_KEY" > ~/.ssh/id_deploy
|
# echo "$SSH_KEY" > ~/.ssh/id_deploy
|
||||||
chmod 600 ~/.ssh/id_deploy
|
# chmod 600 ~/.ssh/id_deploy
|
||||||
ssh-keyscan -H hazemkrimi.tech >> ~/.ssh/known_hosts
|
ssh-keyscan -H hazemkrimi.tech >> ~/.ssh/known_hosts
|
||||||
rsync -avz --delete client/build/* deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/public
|
rsync -avz --delete client/build/* deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/public
|
||||||
rsync -avz --delete server/executable deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/api
|
rsync -avz --delete server/executable deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/api
|
||||||
|
|||||||
Reference in New Issue
Block a user