77 required : true
88
99env :
10+ VERSION : ${{ env.VERSION }}
11+
1012 AWS_DEFAULT_REGION : us-east-1
1113 AWS_PUBLIC_ECR_REGION : us-east-1
1214 AWS_PRIVATE_ECR_REGION : us-west-2
@@ -88,15 +90,15 @@ jobs:
8890 TWINE_USERNAME : ' __token__'
8991 TWINE_PASSWORD : ${{ env.TEST_PYPI_TOKEN_API_TOKEN }}
9092 run : |
91- twine upload --repository testpypi --skip-existing --verbose dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
93+ twine upload --repository testpypi --skip-existing --verbose dist/aws_opentelemetry_distro-${{ env.VERSION }}-py3-none-any.whl
9294
9395 # Publish to prod PyPI
9496 - name : Publish to PyPI
9597 env :
9698 TWINE_USERNAME : ' __token__'
9799 TWINE_PASSWORD : ${{ env.PROD_PYPI_TOKEN_API_TOKEN }}
98100 run : |
99- twine upload --skip-existing --verbose dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
101+ twine upload --skip-existing --verbose dist/aws_opentelemetry_distro-${{ env.VERSION }}-py3-none-any.whl
100102
101103 # Publish to public ECR
102104 - name : Build and push public ECR image
@@ -107,7 +109,7 @@ jobs:
107109 file : ./Dockerfile
108110 platforms : linux/amd64,linux/arm64
109111 tags : |
110- ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
112+ ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ env.VERSION }}
111113
112114 # Publish to private ECR
113115 - name : Build and push private ECR image
@@ -118,7 +120,7 @@ jobs:
118120 file : ./Dockerfile
119121 platforms : linux/amd64,linux/arm64
120122 tags : |
121- ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}
123+ ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ env.VERSION }}
122124
123125 # Publish to GitHub releases
124126 - name : Create GH release
@@ -127,7 +129,7 @@ jobs:
127129 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
128130 run : |
129131 gh release create --target "$GITHUB_REF_NAME" \
130- --title "Release v${{ github.event.inputs.version }}" \
132+ --title "Release v${{ env.VERSION }}" \
131133 --draft \
132- "v${{ github.event.inputs.version }}" \
133- dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
134+ "v${{ env.VERSION }}" \
135+ dist/aws_opentelemetry_distro-${{ env.VERSION }}-py3-none-any.whl
0 commit comments