File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed
exporters/aws-otel-otlp-udp-exporter Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 11name : Release ADOT OTLP UDP Exporter
22
33on :
4+ push :
5+ branches :
6+ - " test-pypi"
47 workflow_dispatch :
58 inputs :
69 version :
7477 exit 1
7578 fi
7679
77- # TODO: Steps to publish to PyPI
80+ - name : Configure AWS credentials for PyPI secrets
81+ uses : aws-actions/configure-aws-credentials@v4
82+ with :
83+ role-to-assume : ${{ secrets.AWS_ROLE_ARN_SECRETS_MANAGER }}
84+ aws-region : ${{ env.AWS_DEFAULT_REGION }}
85+
86+ - name : Get PyPI secrets
87+ uses : aws-actions/aws-secretsmanager-get-secrets@v1
88+ id : pypi_secrets
89+ with :
90+ secret-ids : |
91+ TEST_PYPI_TOKEN,${{ secrets.PYPI_TEST_TOKEN_SECRET_ARN }}
92+ parse-json-secrets : true
93+
94+ # The step below publishes to testpypi in order to catch any issues
95+ # with the package configuration that would cause a failure to upload to PyPI.
96+ - name : Publish to TestPyPI
97+ env :
98+ TWINE_USERNAME : ' __token__'
99+ TWINE_PASSWORD : ${{ env.TEST_PYPI_TOKEN_API_TOKEN }}
100+ run : |
101+ twine upload --repository testpypi --skip-existing --verbose dist/${{ env.ARTIFACT_NAME }}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " aws-otel-otlp-udp-exporter"
7- version = " 0.1.0 "
7+ version = " 0.0.1 "
88description = " OTLP UDP Exporter for OpenTelemetry"
99readme = " README.rst"
1010license = " Apache-2.0"
You can’t perform that action at this time.
0 commit comments