From a02a7f1ee21c06c775b69c784e4010387a22e255 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Sat, 7 Dec 2024 14:46:06 -0500 Subject: [PATCH] minimize changes in the release workflow --- .github/workflows/release-internal.yml | 1 - .github/workflows/release.yml | 15 +++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-internal.yml b/.github/workflows/release-internal.yml index 8496d3e..c272b80 100644 --- a/.github/workflows/release-internal.yml +++ b/.github/workflows/release-internal.yml @@ -34,7 +34,6 @@ on: defaults: run: shell: "bash" - working-directory: ./dbt-postgres jobs: invoke-reusable-workflow: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bde4d4a..03d6305 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,15 +59,18 @@ jobs: with: ref: ${{ needs.release-prep.outputs.release-branch }} persist-credentials: false - - uses: actions/setup-python@v5 - with: - python-version: ${{ inputs.python_version }} - - uses: pypa/hatch@install - - id: archive + + - name: "Setup `hatch`" + uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main + + - name: "Set archive name" + id: archive run: | archive_name=${{ github.event.repository.name }}-${{ inputs.version }}-${{ inputs.deploy-to }} echo "name=$archive_name" >> $GITHUB_OUTPUT - - uses: dbt-labs/dbt-adapters/.github/actions/build-hatch@main + + - name: "Build ${{ github.event.repository.name }}" + uses: dbt-labs/dbt-adapters/.github/actions/build-hatch@main with: archive-name: ${{ steps.archive.outputs.name }}