Skip to content

Commit

Permalink
Fix: automated deployment (#119)
Browse files Browse the repository at this point in the history
* update sh;

* fixed deploy sh;

* fixed;

* fixed

* update deploy-pre;

* Update deploy-pre.yml

* Update deploy-pre.yml

* Update deploy-pre.yml

* Update deploy-pre.yml

* Update deploy-pre.yml

* Update deploy-pre.yml

* update
  • Loading branch information
KingSkyLi authored Jan 23, 2025
1 parent 401f2a4 commit 1d09bf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ jobs:
run: |
sshpass -p "$PRE_PWD" ssh -o StrictHostKeyChecking=no $PRE_USER@$PRE_HOST << EOF
set -e
export PATH="/root/miniconda3/bin:\$PATH"
source /root/miniconda3/etc/profile.d/conda.sh
conda activate osgraph-env
cd $DEPLOY_PATH
git checkout master
git pull
source /root/.bashrc
conda activate osgraph-env
bash ./bin/build.sh
bash ./bin/start.sh prod
EOF
4 changes: 3 additions & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
run: |
sshpass -p "$PROD_PWD" ssh -o StrictHostKeyChecking=no $PROD_USER@$PROD_HOST << EOF
set -e
export PATH="/root/miniconda3/bin:\$PATH"
source /root/miniconda3/etc/profile.d/conda.sh
conda activate osgraph-env
cd $DEPLOY_PATH
git checkout release
git pull
conda activate osgraph-env
bash ./bin/build.sh
bash ./bin/start.sh prod
EOF

0 comments on commit 1d09bf8

Please sign in to comment.