Skip to content

v1.12.5

v1.12.5 #17

Workflow file for this run

name: Test and release new version to PyPI
on:
release:
types: [created]
workflow_dispatch:
permissions:
contents: read
packages: read
id-token: write
jobs:
release-version:
name: Test and release new version
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
timeout-minutes: 120
container:
image: dbtfabric.azurecr.io/devcontainer/spark:c30058bab7d446a30b78be86804639114f58edb0242a79c5e1400af912052265
options: >-
--cap-add=SYS_ADMIN
--device=/dev/fuse
--security-opt=apparmor:unconfined
--add-host=host.docker.internal:host-gateway
defaults:
run:
shell: bash
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- name: "🔒 Configure container permissions and PATH"
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: "⚙️ Post create commands"
run: /tmp/overlay/post-create-commands.sh
- name: "⚙️ Post attach commands"
run: /tmp/overlay/post-attach-commands.sh
- name: "📦 Build"
run: npx nx run dbt-fabricspark:build --output-style=stream --verbose
- name: "🚀 Publish"
run: npx nx run dbt-fabricspark:publish --output-style=stream --verbose