Skip to content

Workflow file for this run

name: Publish Python 🐍 distribution πŸ“¦ to PyPI
on:
release:
types: [published]
permissions:
contents: read
jobs:
release-build:
uses: ./.github/workflows/build.yml
publish-to-pypi:
name: >-
Publish Python 🐍 distribution πŸ“¦ to PyPI
needs:
- release-build
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/ewatercycle
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution πŸ“¦ to PyPI
uses: pypa/gh-action-pypi-publish@release/v1