# Example deployment workflow # Copy to .github/workflows/deploy.yml and configure secrets: # SERVER_HOST - IP address or hostname of your server # SERVER_USER - SSH user for deployment (e.g., "deploy") # SERVER_SSH_KEY - Private SSH key for authentication name: Deploy to Server on: push: branches: - main workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest steps: - name: Deploy code uses: appleboy/ssh-action@v1.0.3 with: host: ${{ secrets.SERVER_HOST }} username: ${{ secrets.SERVER_USER }} key: ${{ secrets.SERVER_SSH_KEY }} script: | cd /opt/data-analyst/repo /opt/data-analyst/repo/server/deploy.sh