Skip to content

Commit e5a64dd

Browse files
committed
Add manylinux wheel builds to linux deploy step.
1 parent 7e7b95e commit e5a64dd

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ on:
2121

2222

2323
jobs:
24-
deploy:
24+
deploy-linux:
2525

2626
runs-on: ubuntu-latest
2727

2828
steps:
2929
- uses: actions/checkout@v2
30+
with:
31+
persist-credentials: false
3032
- uses: actions/setup-python@v2
3133
with:
3234
python-version: '3.x'
@@ -35,22 +37,15 @@ jobs:
3537
run: |
3638
pip install -U pip
3739
pip install -U wheel setuptools twine
38-
- name: Build Package
40+
- name: Build Source Package
3941
run: python setup.py sdist
40-
- name: Upload Package to S3
41-
run: |
42-
tarball="$(python setup.py --fullname).tar.gz"
43-
md5_file=$(mktemp)
44-
openssl md5 -binary dist/$tarball | xxd -p | tr -d '\n' > $md5_file
45-
aws s3 cp $md5_file $S3_DST/${tarball}.md5
46-
aws s3 cp dist/$tarball $S3_DST/$tarball
47-
env:
48-
S3_DST: s3://nr-downloads-main/python_agent/release
49-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
50-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
42+
- name: Build Manylinux Wheels
43+
uses: RalfG/python-wheels-manylinux-build@f7c9db24751e53d2d3c90edc2b04a9ffaa96cd01
44+
with:
45+
python-versions: 'cp27-cp27m cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38'
5146
- name: Upload Package to PyPI
5247
run: |
53-
twine upload --non-interactive dist/*
48+
twine upload --non-interactive dist/*.tar.gz dist/*-manylinux*.whl
5449
env:
5550
TWINE_USERNAME: __token__
5651
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)