updated package to 1.0.0 #37
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 Mac | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Test SSH Connection | |
| uses: appleboy/ssh-action@v1 | |
| with: | |
| host: ${{ secrets.DEPLOYMENT_MAC_IP }} | |
| username: ${{ secrets.DEPLOYMENT_MAC_USER }} | |
| key: ${{ secrets.PRAVEEN_MAC_SSH_KEY }} | |
| script: | | |
| echo "✅ SSH Connection Successful" | |
| uname -a # Check system details | |
| ls -lah # List files for debugging | |
| - name: Deploy via SSH | |
| uses: appleboy/ssh-action@v1 | |
| with: | |
| host: ${{ secrets.DEPLOYMENT_MAC_IP }} | |
| username: ${{ secrets.DEPLOYMENT_MAC_USER }} | |
| key: ${{ secrets.PRAVEEN_MAC_SSH_KEY }} | |
| script: | | |
| cd path/to/your/repo # Update this path! | |
| git pull origin main | |
| docker-compose down | |
| docker-compose up -d --build |