diff --git a/.github/workflows/publish-pypi-internal.yml b/.github/workflows/publish-pypi-internal.yml deleted file mode 100644 index 8bcad76eb..000000000 --- a/.github/workflows/publish-pypi-internal.yml +++ /dev/null @@ -1,36 +0,0 @@ -# What? -# Tag and release an arbitrary ref. Uploads to an internal archive. -# -# How? -# After checking out and testing the provided ref, the image is built and uploaded. -# -# When? -# - manually -name: "Publish to internal PyPI" - -on: - workflow_dispatch: - inputs: - version: - description: "The release version number (i.e. 1.0.0b1)" - type: string - required: true - ref: - description: "The ref (sha or branch name) to use" - type: string - required: true - test-command: - description: "Package test command" - type: string - default: "python -c \"import dbt.adapters.redshift\"" - -jobs: - build-and-publish: - name: "Build and release to internal PyPI" - uses: dbt-labs/dbt-release/.github/workflows/internal-archive-release.yml@main - with: - version_number: "${{ inputs.version }}" - package_test_command: "${{ inputs.test-command }}" - dbms_name: "redshift" - ref: ${{ inputs.ref }} - secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bdee63147..6766c4c7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -219,6 +219,20 @@ jobs: version: ${{ inputs.version }} deploy-environment: ${{ inputs.deploy-environment }} + publish-pypi-internal: + name: "Publish to internal PyPI" + if: ${{ !failure() && !cancelled() }} + needs: + - release-inputs + - merge-changes + uses: dbt-labs/dbt-release/.github/workflows/internal-archive-release.yml@main + with: + version_number: "${{ inputs.version }}" + package_test_command: "python -c \"import dbt.adapters.redshift\"" + dbms_name: "redshift" + ref: ${{ needs.merge-changes.outputs.sha }} + secrets: inherit + slack-notification: name: "Slack notification" if: ${{ failure() && (inputs.deploy-environment == 'prod' || inputs.publish-slack-override) }}