Skip to content

BLD, DOC: Pin sphinx-autodoc-typehints, fix incorrect usage example #30

BLD, DOC: Pin sphinx-autodoc-typehints, fix incorrect usage example

BLD, DOC: Pin sphinx-autodoc-typehints, fix incorrect usage example #30

name: Publish Python 🐍 distributions 📦 to PyPI
on:
pull_request:
branches: [main]
release:
types: [published]
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
if: github.event.action == 'published'
environment:
name: pypi
url: https://pypi.org/project/fmu-tools
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Update pip
run: pip install pip --upgrade
- name: Install build dependencies
run: pip install build --upgrade
- name: Build package
run: python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
verbose: true