fix #8
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
# This workflow will upload a Python Package | |
# using Twine when a release is created | |
name: publish | |
on: push | |
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 |