55 version :
66 description : The version to tag the release with, e.g., 1.2.0
77 required : true
8+ push :
89
910env :
1011 AWS_DEFAULT_REGION : us-east-1
@@ -88,15 +89,15 @@ jobs:
8889 TWINE_USERNAME : ' __token__'
8990 TWINE_PASSWORD : ${{ env.TEST_PYPI_TOKEN_API_TOKEN }}
9091 run : |
91- twine upload --repository testpypi --skip-existing --verbose dist/aws_opentelemetry_distro-${{ github.event.inputs.version }} -py3-none-any.whl
92+ twine upload --repository testpypi --skip-existing --verbose dist/aws_opentelemetry_distro-0.7.0.dev0 -py3-none-any.whl
9293
9394 # Publish to prod PyPI
9495 - name : Publish to PyPI
9596 env :
9697 TWINE_USERNAME : ' __token__'
9798 TWINE_PASSWORD : ${{ env.PROD_PYPI_TOKEN_API_TOKEN }}
9899 run : |
99- twine upload --skip-existing --verbose dist/aws_opentelemetry_distro-${{ github.event.inputs.version }} -py3-none-any.whl
100+ twine upload --skip-existing --verbose dist/aws_opentelemetry_distro-0.7.0.dev0 -py3-none-any.whl
100101
101102 # Publish to public ECR
102103 - name : Build and push public ECR image
@@ -107,7 +108,7 @@ jobs:
107108 file : ./Dockerfile
108109 platforms : linux/amd64,linux/arm64
109110 tags : |
110- ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
111+ ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v0.7.0.dev0
111112
112113 # Publish to private ECR
113114 - name : Build and push private ECR image
@@ -118,7 +119,15 @@ jobs:
118119 file : ./Dockerfile
119120 platforms : linux/amd64,linux/arm64
120121 tags : |
121- ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}
122+ ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v0.7.0.dev0
123+
124+ - name : Get SHA256 checksum of wheel file
125+ id : get_sha256
126+ env :
127+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
128+ run : |
129+ filename="aws_opentelemetry_distro-0.7.0.dev0-py3-none-any.whl"
130+ shasum -a 256 dist/$filename | awk '{print $1}' > $filename.sha256
122131
123132 # Publish to GitHub releases
124133 - name : Create GH release
@@ -127,7 +136,14 @@ jobs:
127136 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
128137 run : |
129138 gh release create --target "$GITHUB_REF_NAME" \
130- --title "Release v${{ github.event.inputs.version }} " \
139+ --title "Release v0.7.0.dev0 " \
131140 --draft \
132- "v${{ github.event.inputs.version }}" \
133- dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
141+ "v0.7.0.dev0" \
142+ dist/aws_opentelemetry_distro-0.7.0.dev0-py3-none-any.whl \
143+ aws_opentelemetry_distro-0.7.0.dev0-py3-none-any.whl.sha256
144+
145+
146+
147+
148+
149+
0 commit comments