Skip to content

Commit aea8d3c

Browse files
committed
Issue #252 Github workflow to publish to PyPI
also related to Open-EO/openeo-aggregator#171
1 parent 31ffc6d commit aea8d3c

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/publish-to-test-pypi.yml renamed to .github/workflows/publish-to-pypi.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,28 @@ jobs:
2727
name: python-package-distributions
2828
path: dist/
2929

30+
publish-to-pypi:
31+
name: >-
32+
Publish distribution 📦 to PyPI
33+
#if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
34+
needs:
35+
- build
36+
runs-on: ubuntu-latest
37+
environment:
38+
name: pypi
39+
url: https://pypi.org/p/openeo-driver
40+
permissions:
41+
id-token: write
42+
43+
steps:
44+
- name: Download all the dists
45+
uses: actions/download-artifact@v4
46+
with:
47+
name: python-package-distributions
48+
path: dist/
49+
- name: Publish distribution 📦 to PyPI
50+
uses: pypa/gh-action-pypi-publish@release/v1
51+
3052
publish-to-testpypi:
3153
name: Publish distribution 📦 to TestPyPI
3254
needs:

0 commit comments

Comments
 (0)