@@ -28,15 +28,15 @@ jobs:
2828 - name : Checkout Repo @ SHA - ${{ github.sha }}
2929 uses : actions/checkout@v4
3030
31- # - name: Build Wheel and Image Files
32- # uses: ./.github/actions/artifacts_build
33- # with:
34- # image_uri_with_tag: "adot-autoinstrumentation-python:test"
35- # push_image: false
36- # load_image: true
37- # python_version: "3.10"
38- # package_name: aws-opentelemetry-distro
39- # os: ubuntu-latest
31+ - name : Build Wheel and Image Files
32+ uses : ./.github/actions/artifacts_build
33+ with :
34+ image_uri_with_tag : " adot-autoinstrumentation-python:test"
35+ push_image : false
36+ load_image : true
37+ python_version : " 3.10"
38+ package_name : aws-opentelemetry-distro
39+ os : ubuntu-latest
4040
4141 # # TODO: Add some sort of smoke/integration testing before we go
4242 # # release the artifacts. adot java for reference:
@@ -89,15 +89,15 @@ jobs:
8989 # TWINE_USERNAME: '__token__'
9090 # TWINE_PASSWORD: ${{ env.TEST_PYPI_TOKEN_API_TOKEN }}
9191 # run: |
92- # 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 -py3-none-any.whl
9393
9494 # # Publish to prod PyPI
9595 # - name: Publish to PyPI
9696 # env:
9797 # TWINE_USERNAME: '__token__'
9898 # TWINE_PASSWORD: ${{ env.PROD_PYPI_TOKEN_API_TOKEN }}
9999 # run: |
100- # 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 -py3-none-any.whl
101101
102102 # # Publish to public ECR
103103 # - name: Build and push public ECR image
@@ -108,7 +108,7 @@ jobs:
108108 # file: ./Dockerfile
109109 # platforms: linux/amd64,linux/arm64
110110 # tags: |
111- # ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v${{ github.event.inputs.version }}
111+ # ${{ env.RELEASE_PUBLIC_REPOSITORY }}:v0.7.0
112112
113113 # # Publish to private ECR
114114 # - name: Build and push private ECR image
@@ -119,7 +119,7 @@ jobs:
119119 # file: ./Dockerfile
120120 # platforms: linux/amd64,linux/arm64
121121 # tags: |
122- # ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v${{ github.event.inputs.version }}
122+ # ${{ env.RELEASE_PRIVATE_REPOSITORY }}:v0.7.0
123123
124124 # Publish to GitHub releases
125125 - name : Create GH release
@@ -128,32 +128,18 @@ jobs:
128128 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
129129 run : |
130130 gh release create --target "$GITHUB_REF_NAME" \
131- --title "Release v${{ github.event.inputs.version }} " \
131+ --title "Release v0.7.0 " \
132132 --draft \
133- "v${{ github.event.inputs.version }}" \
134- dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl
135-
136- # - name: Get SHA256 checksum of wheel file
137- # id: get_sha256
138- # env:
139- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140- # run: |
141- # checksum=$(shasum -a 256 dist/aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl | awk '{ print $1 }')
142- # echo "CHECKSUM=$checksum" >> $GITHUB_OUTPUT
143-
144- # - name: Append checksum and update version
145- # env:
146- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
147- # run: |
148- # echo "aws_opentelemetry_distro-${{ github.event.inputs.version }}-py3-none-any.whl ${{ steps.get_sha256.outputs.CHECKSUM }}" >> checksum.txt
149- # echo "${{ github.event.inputs.version }}" > version.txt
150-
151- # git config --local user.email "github-actions[bot]@users.noreply.github.com"
152- # git config --local user.name "GitHub Action Release Workflow"
153- # git add checksum.txt version.txt
154- # git commit -m "Update latest version and append checksum"
155- # git push
133+ "v0.7.0" \
134+ dist/aws_opentelemetry_distro-0.7.0-py3-none-any.whl
156135
136+ - name : Get SHA256 checksum of wheel file
137+ id : get_sha256
138+ env :
139+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
140+ run : |
141+ checksum=$(shasum -a 256 dist/aws_opentelemetry_distro-0.7.0-py3-none-any.whl | awk '{ print $1 }')
142+ echo "aws_opentelemetry_distro-0.7.0-py3-none-any.whl: $checksum"
157143
158144
159145
0 commit comments