chore: remove console #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Step Up Grow Website CI/CD (SSH) | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Deploy to Production | |
if: github.ref == 'refs/heads/main' | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
script: | | |
bash | |
cd ~/step-up-grow-website | |
git pull origin main | |
# Update API URL to production | |
sed -i 's|http://localhost:5000/api|https://api.stepupgrow.in/api|g' js/main.js | |
# Update Login URL to production | |
sed -i 's|http://localhost:5173|https://app.stepupgrow.in|g' index.html |