Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds upload to S3 #227

Merged
merged 16 commits into from
Mar 15, 2021
19 changes: 18 additions & 1 deletion .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,27 @@ jobs:
build-requirements: 'setuptools numpy cython pyaml pyqt5 requests scipy shapely pandas'
pip-wheel-args: '--no-deps'

- name: Moves wheels
run: |
mkdir -p dist
cp -v ./*-manylinux*.whl dist/

- name: Publish wheels to PyPI
if: ${{ github.event_name == 'release'}}
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload wheelhouse/*-manylinux2014_x86_64.whl
twine upload dist/*-manylinux*.whl

- name: Save wheels to AWS
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1' # optional: defaults to us-east-1
SOURCE_DIR: 'dist/' # optional: defaults to entire repository
DEST_DIR: 'wheels/' # optional: defaults to entire repository
2 changes: 1 addition & 1 deletion .github/workflows/build_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
twine upload dist/*.whl

- name: Publish tar files
if: ${{ github.event_name == 'release'}}
if: ${{ github.event_name == 'release' && matrix.python-version == '3.8'}}
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down