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 π 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 |