Skip to content

publish package

publish package #6

# This workflow will upload a Python Package
# using Twine when a release is created
name: publish
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pydependence
permissions:
id-token: write # mandatory for pypi trusted publishing
steps:
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1