Skip to content

Commit 206c8c3

Browse files
committed
test publish to testpypi
1 parent 79049d8 commit 206c8c3

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

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

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Release ADOT OTLP UDP Exporter
22

33
on:
4+
push:
5+
branches:
6+
- "test-pypi"
47
workflow_dispatch:
58
inputs:
69
version:
@@ -74,4 +77,25 @@ jobs:
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 }}

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.1.0"
7+
version = "0.0.1"
88
description = "OTLP UDP Exporter for OpenTelemetry"
99
readme = "README.rst"
1010
license = "Apache-2.0"

0 commit comments

Comments
 (0)