From 59103164c58afeefcf209f56df2ed38a714e74c5 Mon Sep 17 00:00:00 2001 From: Mike Alfare <13974384+mikealfare@users.noreply.github.com> Date: Fri, 1 Mar 2024 18:10:10 -0500 Subject: [PATCH] Use appropriate archive name (#31) --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ccf805f5..69542465 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,10 +37,20 @@ jobs: - name: Setup `hatch` uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main + - name: Inputs + id: release-inputs + run: | + version=$(hatch version) + archive_name=dbt-postgres-$version-${{ inputs.deploy-to }} + echo "archive-name=$archive_name" >> $GITHUB_OUTPUT + - name: Build `dbt-postgres` uses: dbt-labs/dbt-adapters/.github/actions/build-hatch@main + with: + archive-name: ${{ steps.release-inputs.outputs.archive-name }} - name: Publish to PyPI uses: dbt-labs/dbt-adapters/.github/actions/publish-pypi@main with: pypi-repository-url: ${{ vars.PYPI_REPOSITORY_URL }} + archive-name: ${{ steps.release-inputs.outputs.archive-name }}