Changes OSM downloader to accept a polygon instead of a bounding box #1191
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and upload Linux Python Package (includes QGIS artifacts) | |
on: [pull_request, release] | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
env: | |
HAS_SECRETS: ${{ secrets.AWS_SECRET_ACCESS_KEY != '' }} | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install packages | |
run: | | |
python -m pip install --upgrade pip wheel cffi setuptools twine | |
- name: Build manylinux Python wheels | |
uses: RalfG/python-wheels-manylinux-build@v0.7.1 | |
with: | |
python-versions: 'cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312' | |
pip-wheel-args: '--no-deps' | |
- name: Moves wheels | |
run: | | |
mkdir -p dist | |
cp -v ./*-manylinux*.whl dist/ | |
# - name: update versions to conform with QGIS | |
# run: | | |
# cd .github | |
# python qgis_requirements.py | |
# cd .. | |
# | |
# - name: Build manylinux Python wheels | |
# uses: RalfG/python-wheels-manylinux-build@v0.7.1 | |
# with: | |
# python-versions: 'cp39-cp39' | |
# pip-wheel-args: '--no-deps' | |
# | |
# - name: Moves wheels | |
# run: | | |
# mkdir -p dist | |
# cp -v ./*-manylinux*.whl dist/ | |
- name: Stores artifacts along with the workflow result | |
if: ${{ github.event_name == 'push'}} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: library | |
path: dist/*.whl | |
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` | |
- name: Publish wheels to PyPI | |
if: ${{ (github.event_name == 'release') && (env.HAS_SECRETS == 'true') }} | |
env: | |
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: | | |
twine upload dist/*-manylinux*.whl | |
- name: Save wheels to AWS | |
if: ${{ (env.HAS_SECRETS == 'true') }} | |
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 |