From c18585f33986ce605691fc38dab1576e351bc875 Mon Sep 17 00:00:00 2001 From: Mila Page <67295367+VersusFacit@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:48:48 -0700 Subject: [PATCH] Add release internal workflow (#35) Co-authored-by: Mila Page --- .github/workflows/release-internal.yml | 55 +++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-internal.yml b/.github/workflows/release-internal.yml index d868682a..d560787e 100644 --- a/.github/workflows/release-internal.yml +++ b/.github/workflows/release-internal.yml @@ -1 +1,54 @@ -# this is an empty file +# What? +# +# Send a sha as a fully fledged relase to an internal archive for further processing. +# +# How? +# +# Checkout the sha +# Test it +# Build it +# Upload it +# +# When? +# +# Manual trigger + +name: Release internal patch + +on: + workflow_dispatch: + inputs: + version_number: + description: "The release version number (i.e. 1.0.0b1)" + type: string + required: true + sha: + description: "The sha to use (leave empty to use latest on main)" + type: string + required: false + package_test_command: + description: "Package test command" + type: string + default: "python -c \"import dbt.adapters.postgres\"" + required: true + +defaults: + run: + shell: "bash" + +env: + PYTHON_TARGET_VERSION: 3.11 + +jobs: + invoke-reusable-workflow: + name: "Build and Release Internally" + + uses: "dbt-labs/dbt-release/.github/workflows/internal-archive-release.yml@mp/finish_internal_workflow" + + with: + version_number: "${{ inputs.version_number }}" + package_test_command: "${{ inputs.package_test_command }}" + dbms_name: "postgres" + sha: "${{ inputs.sha }}" + + secrets: "inherit"