Release Bundle to Prod #5
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: "Release Bundle to Prod" | |
| on: workflow_dispatch | |
| permissions: | |
| contents: read | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12"] | |
| environment: prod | |
| env: | |
| DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }} | |
| DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }} | |
| DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }} | |
| DATABRICKS_BUNDLE_ENV: prod | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv and set the python version | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| version: "0.8.0" | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - uses: databricks/setup-cli@main | |
| with: | |
| version: 0.260.0 | |
| - name: Install the project | |
| run: uv sync --locked --extra dev | |
| - name: Check Databricks CLI | |
| run: databricks current-user me | |
| - name: Deploy Databricks Bundle | |
| run: databricks bundle deploy --target prod | |
| working-directory: . |