Skip to content

Commit

Permalink
publish from within the hatch environment so that twine is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Oct 18, 2024
1 parent 968baa8 commit 2533875
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 2533875

Please sign in to comment.