Skip to content

Commit

Permalink
Update python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dfjswanson authored Apr 25, 2024
1 parent f610dd1 commit e6eb26a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,28 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

publish-to-prodpypi:
if: "!github.event.release.prerelease"
name: publish python distribution to ProdPyPi
needs:
- build
runs-on: ubuntu-latest

environment:
name: prodpypi
url: https://pypi.org/p/dataforge-core

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 dist to ProdPyPI
uses: pypa/gh-action-pypi-publish@release/v1


0 comments on commit e6eb26a

Please sign in to comment.