From 78fb4dac753f004efe2456034835a35a1fd83134 Mon Sep 17 00:00:00 2001 From: Zhonghao Zhao Date: Tue, 13 Feb 2024 08:47:49 -0800 Subject: [PATCH] fix token. --- .github/workflows/release_build.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 8ec5c6cde..b7e432dcf 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -45,16 +45,6 @@ jobs: PROD_PYPI_TOKEN,arn:aws:secretsmanager:us-east-1:637423224110:secret:prod/PyPI/apiToken-W2a9ny TEST_PYPI_TOKEN,arn:aws:secretsmanager:us-east-1:637423224110:secret:test/PyPI/apiToken-z5iqc6 - # The step below publishes to testpypi in order to catch any issues - # with the package configuration that would cause a failure to upload to pypi. - - name: Publish to TestPyPI - env: - TWINE_USERNAME: '__token__' - TWINE_PASSWORD: ${{ steps.pypi_secrets.outputs.TEST_PYPI_TOKEN }} - run: | - pip install --upgrade twine - twine upload --repository testpypi --skip-existing --verbose dist/aws_opentelemetry_distro-${{ steps.create_release.outputs.ADOT_PYTHON_VERSION }}-py3-none-any.whl - - name: Create release id: create_release env: @@ -67,6 +57,16 @@ jobs: --draft \ "v${{ github.event.inputs.version }}" \ dist/aws_opentelemetry_distro-$pkg_version-py3-none-any.whl + + # The step below publishes to testpypi in order to catch any issues + # with the package configuration that would cause a failure to upload to pypi. + - name: Publish to TestPyPI + env: + TWINE_USERNAME: '__token__' + TWINE_PASSWORD: ${{ steps.pypi_secrets.outputs.TEST_PYPI_TOKEN }} + run: | + pip install --upgrade twine + twine upload --repository testpypi --skip-existing --verbose dist/aws_opentelemetry_distro-${{ steps.create_release.outputs.ADOT_PYTHON_VERSION }}-py3-none-any.whl - name: Push Release image uses: docker/build-push-action@v5