Skip to content

Integration with Xarray NDPointIndex #14

Integration with Xarray NDPointIndex

Integration with Xarray NDPointIndex #14

Workflow file for this run

name: Upload Python Package
on:
workflow_dispatch:
release:
types: [published]
pull_request:
paths:
- ".github/workflows/pypipublish.yml"
- "pyproject.toml"
jobs:
dist:
name: Build & inspect package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2
publish:
name: Upload package to PyPI
needs: [dist]
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
attestations: write
contents: read
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- name: Get dist files
uses: actions/download-artifact@v6
with:
name: Packages
path: dist
- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@v3
with:
subject-path: "dist/*"
- name: Publish on PyPI
uses: pypa/gh-action-pypi-publish@release/v1