From 2533875562ff348b97871cebcfe592cb5c973238 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 18 Oct 2024 13:00:31 -0400 Subject: [PATCH] publish from within the hatch environment so that twine is installed --- .github/workflows/publish-internal.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-internal.yml b/.github/workflows/publish-internal.yml index 2012a51b..6b3419a9 100644 --- a/.github/workflows/publish-internal.yml +++ b/.github/workflows/publish-internal.yml @@ -72,21 +72,21 @@ jobs: versions_published: ${{ steps.published.outputs.versions }} - run: | hatch version ${{ steps.next.outputs.internal_release_version }} - hatch build + hatch build --clean hatch run build:check-all working-directory: ./${{ inputs.package }} - run: | - export TWINE_PASSWORD=$(aws codeartifact get-authorization-token \ + export HATCH_INDEX_AUTH=$(aws codeartifact get-authorization-token \ --domain ${{ vars.AWS_DOMAIN }} \ --output text \ --query authorizationToken) - export TWINE_REPOSITORY_URL=$(aws codeartifact get-repository-endpoint \ + export HATCH_INDEX_REPO=$(aws codeartifact get-repository-endpoint \ --domain ${{ vars.AWS_DOMAIN }} \ --repository ${{ vars.AWS_REPOSITORY }} \ --format pypi \ --output text \ --query repositoryEndpoint) - twine upload dist/* + hatch publish working-directory: ./${{ inputs.package }}