From c67e5b5ac47e1179584fe429bb399af4d602c94b Mon Sep 17 00:00:00 2001 From: Aravindan Thulasinathan Date: Thu, 20 Mar 2025 22:50:59 -0700 Subject: [PATCH] upload to codeartifact --- .github/workflows/python-app.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index a75ce4f..0a4baaa 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -29,11 +29,11 @@ jobs: - name: Test run: | make test - - name: Upload to Codeartifact + - name: Build run: | - export TWINE_USERNAME=aws - export TWINE_PASSWORD=`aws codeartifact get-authorization-token --domain nextdoor --query authorizationToken --output text --region us-west-2 --duration 900` - export TWINE_REPOSITORY_URL=`aws codeartifact get-repository-endpoint --domain nextdoor --domain-owner 364942603424 --region us-west-2 --repository dev-arvi --format pypi --query repositoryEndpoint --output text` python setup.py sdist bdist_wheel - twine upload dist/* + - name: Publish + run: | + aws codeartifact login --tool twine --repository dev-arvi --domain nextdoor --domain-owner 364942603424 --region us-west-2 && + twine upload --repository codeartifact dist/*