Skip to content

Commit 16b182e

Browse files
committed
add publish to pypi prod step
1 parent 840acd7 commit 16b182e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release-udp-exporter.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
id: pypi_secrets
9393
with:
9494
secret-ids: |
95+
PROD_PYPI_TOKEN,${{ secrets.PYPI_PROD_TOKEN_SECRET_ARN }}
9596
TEST_PYPI_TOKEN,${{ secrets.PYPI_TEST_TOKEN_SECRET_ARN }}
9697
parse-json-secrets: true
9798

@@ -106,3 +107,11 @@ jobs:
106107
TWINE_PASSWORD: ${{ env.TEST_PYPI_TOKEN_API_TOKEN }}
107108
run: |
108109
twine upload --repository testpypi --skip-existing --verbose exporters/aws-otel-otlp-udp-exporter/dist/${{ env.ARTIFACT_NAME }}
110+
111+
# Publish to prod PyPI
112+
- name: Publish to PyPI
113+
env:
114+
TWINE_USERNAME: '__token__'
115+
TWINE_PASSWORD: ${{ env.PROD_PYPI_TOKEN_API_TOKEN }}
116+
run: |
117+
twine upload --skip-existing --verbose exporters/aws-otel-otlp-udp-exporter/dist/${{ env.ARTIFACT_NAME }}

0 commit comments

Comments
 (0)