Bump python deps #7
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: Publish Python Package | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/osgeo/gdal:ubuntu-full-3.7.2 | |
env: | |
POETRY_NO_INTERACTION: 1 | |
POETRY_VIRTUALENVS_IN_PROJECT: 1 | |
POETRY_VIRTUALENVS_CREATE: 1 | |
POETRY_CACHE_DIR: /tmp/poetry_cache | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
run: | | |
apt-get update | |
apt-get install -y python3-pip python3-dev | |
python -m pip install --upgrade pip | |
- name: Install Poetry | |
run: | | |
echo "Installing dependencies 🕵🏻♂️" | |
pip install poetry==1.6.1 | |
- name: Configuring PyPI | |
run: | | |
echo "Configuring PyPI 🐍" | |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | |
ldconfig | |
- name: Building and Publishing to PyPI | |
run: | | |
echo "Building the package 📦" | |
poetry build | |
echo "Publishing to PyPI 🔥" | |
poetry publish |