Skip to content

Added username & email availability check endpoint #26

Added username & email availability check endpoint

Added username & email availability check endpoint #26

Workflow file for this run

name: Deploy to VPS
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.VPS_IP }}
username: ${{ secrets.VPS_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
echo "[INFO] Cloning latest code..."
rm -rf codeboxes-server
git clone https://github.com/harshpx/codeboxes-server.git
cd codeboxes-server
echo "[INFO] Injecting secrets..."
echo "${{secrets.SECRETS_PROPERTIES}}" > ./server/src/main/resources/secrets.properties
echo "[INFO] Executing deployment script..."
chmod +x ./build-and-run.sh
./build-and-run.sh