diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a8563518..953c48cd 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,7 +1,7 @@ # This workflow will upload a Python Package using Twine when a release is created # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries -name: pypi +name: Publish to PyPI on: release: @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 with: @@ -28,11 +28,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install -U setuptools wheel build twine --user + pip install setuptools wheel twine - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python -m build + python setup.py sdist bdist_wheel twine upload dist/* diff --git a/setup.cfg b/setup.cfg index b161e5f3..2f422259 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,7 @@ [metadata] author = The GlacioHack Team name = xdem -version = 0.0.15 +version = 0.0.16.pre description = Analysis of digital elevation models (DEMs) keywords = dem, elevation, geoutils, xarray long_description = file: README.md