Skip to content

Commit 76fbc63

Browse files
committed
add publish to pypi prod step
1 parent 840acd7 commit 76fbc63

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
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 }}

exporters/aws-otel-otlp-udp-exporter/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "aws-otel-otlp-udp-exporter"
7-
version = "0.0.1"
7+
version = "0.1.0"
88
description = "OTLP UDP Exporter for OpenTelemetry"
99
readme = "README.rst"
1010
license = "Apache-2.0"

0 commit comments

Comments
 (0)