Skip to content

Commit

Permalink
wip better
Browse files Browse the repository at this point in the history
  • Loading branch information
gerth2 committed Dec 15, 2023
1 parent 816bb5b commit 5809010
Showing 1 changed file with 7 additions and 20 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,12 @@ jobs:
name: dist
path: ./photon-lib/py/dist/

pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs:
- build
environment:
name: pypi
url: https://pypi.org/p/photonlibpy
- name: Publish package distributions to TestPyPI
# Only upload on tags
# if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages_dir: ./photon-lib/py/dist/

permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: dist
path: dist/
- name: Publish package distributions to TestPyPI
# Only upload on tags
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 5809010

Please sign in to comment.