Skip to content

Commit

Permalink
fix:optimize production deployment (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
KingSkyLi authored Jan 23, 2025
1 parent 1d09bf8 commit b9f3c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ jobs:
PROD_USER: ${{ secrets.PROD_USER }}
PROD_PWD: ${{ secrets.PROD_PWD }}
DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }}
DEPLOY_BRANCH: ${{ github.ref_name }}
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 checkout $DEPLOY_BRANCH
git pull
bash ./bin/build.sh
bash ./bin/start.sh prod
Expand Down

0 comments on commit b9f3c97

Please sign in to comment.