name: Deploy Production on: workflow_dispatch: push: branches: - main jobs: deploy_production: name: Deploy to Production runs-on: docker environment: name: production steps: - name: Checkout repository run: | git clone --depth 1 --branch ${GITHUB_REF##*/} $GITHUB_SERVER_URL/$GITHUB_REPOSITORY . - name: Rebuild and restart Docker Compose run: | set -e docker compose -f docker-compose.server.yml up -d --build - name: 'Optional: Check service health' run: | curl --fail --silent --show-error https://api-finance.ai-assistant-bot.xyz/ || exit 1