From f9c0d50206f3a08f97ccdda6ddd511c4763c2a15 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Thu, 5 Dec 2024 05:40:40 -0500 Subject: [PATCH] update release workflow to use local refs and built-in workflows for installing python and hatch --- .github/workflows/release.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3ab7c9..bde4d4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ defaults: jobs: release-prep: name: "Release prep: generate changelog, bump version" - uses: dbt-labs/dbt-postgres/.github/workflows/release_prep_hatch.yml@main + uses: ./.github/workflows/release_prep_hatch.yml with: branch: ${{ inputs.branch }} version: ${{ inputs.version }} @@ -59,20 +59,15 @@ jobs: with: ref: ${{ needs.release-prep.outputs.release-branch }} persist-credentials: false - - - name: "Setup `hatch`" - uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main + - uses: actions/setup-python@v5 with: python-version: ${{ inputs.python_version }} - - - name: "Set archive name" - id: archive + - uses: pypa/hatch@install + - id: archive run: | archive_name=${{ github.event.repository.name }}-${{ inputs.version }}-${{ inputs.deploy-to }} echo "name=$archive_name" >> $GITHUB_OUTPUT - - - name: "Build ${{ github.event.repository.name }}" - uses: dbt-labs/dbt-adapters/.github/actions/build-hatch@main + - uses: dbt-labs/dbt-adapters/.github/actions/build-hatch@main with: archive-name: ${{ steps.archive.outputs.name }}