Skip to content

Commit c8c01a6

Browse files
committed
Add S3 package upload back into deploy step.
1 parent e5a64dd commit c8c01a6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ jobs:
4343
uses: RalfG/python-wheels-manylinux-build@f7c9db24751e53d2d3c90edc2b04a9ffaa96cd01
4444
with:
4545
python-versions: 'cp27-cp27m cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38'
46+
- name: Upload Package to S3
47+
run: |
48+
tarball="$(python setup.py --fullname).tar.gz"
49+
md5_file=$(mktemp)
50+
openssl md5 -binary dist/$tarball | xxd -p | tr -d '\n' > $md5_file
51+
aws s3 cp $md5_file $S3_DST/${tarball}.md5
52+
aws s3 cp dist/$tarball $S3_DST/$tarball
53+
env:
54+
S3_DST: s3://nr-downloads-main/python_agent/release
55+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
56+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4657
- name: Upload Package to PyPI
4758
run: |
4859
twine upload --non-interactive dist/*.tar.gz dist/*-manylinux*.whl

0 commit comments

Comments
 (0)