Skip to content

Commit

Permalink
avoid build watch
Browse files Browse the repository at this point in the history
  • Loading branch information
shensquared committed Aug 19, 2024
1 parent ebc9827 commit bab2ad8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ jobs:
cd /home/shensquared/gradML
echo "Running on main branch"
git pull origin main
bundle exec jekyll build
EOF
elif [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
ssh -p ${{ secrets.REMOTE_PORT }} -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }} << 'EOF'
cd /home/shensquared/gradML_dev # Replace with the relevant folder path
echo "Running on dev branch"
git pull origin dev
bundle exec jekyll build --config _config.yml,_config_dev.yml
EOF
fi
Expand Down

0 comments on commit bab2ad8

Please sign in to comment.