name: python CI and deployment on: push: branches: [main] paths: - 'apps/python/**' - 'scripts/deploy-python.sh' - '.gitea/workflows/python.yml' pull_request: paths: - 'apps/python/**' - 'scripts/deploy-python.sh' - '.gitea/workflows/python.yml' workflow_dispatch: jobs: verify-and-deploy: runs-on: ces-control timeout-minutes: 45 steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Build and verify python run: docker build -f apps/python/Dockerfile -t "prompt-python:${{ gitea.sha }}" . - name: Release python if: gitea.ref == 'refs/heads/main' && (gitea.event_name == 'push' || gitea.event_name == 'workflow_dispatch') run: bash scripts/deploy-python.sh "${{ gitea.sha }}"