Skip to content

Fixed https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/1654 #17

Fixed https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/1654

Fixed https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/1654 #17

name: Publish to Test.PyPI.org
on:
push:
branches:
- develop
jobs:
publish:
environment:
name: Development
name: Publish distribution 📦 to Test PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Installing python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Adding GDAL PPA
run: sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
- name: Updating Ubuntu
run: sudo apt-get update
- name: Install GDAL development
run: sudo apt-get install gdal-bin libgdal-dev
- name: Installing git
run: pip install gitpython
- name: Installing GDAL Package
run: pip install GDAL==3.7.3
- name: Installing Packages
run: pip install -r requirements.txt
- name: Generating version file
run: python freeze_version.py
- name: Setup python wheel
run: pip install wheel
- name: Building Package
run: python setup.py bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip_existing: true
password: ${{ secrets.PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/