Added username & email availability check endpoint #26
This file contains hidden or 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: 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 |