Skip to content

Commit

Permalink
Add job to publish to pypi and test-pypi for neo4j-graphrag (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
willtai authored Sep 12, 2024
1 parent 31bab6d commit c60844f
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/neo4j-genai
url: https://pypi.org/p/neo4j-graphrag
permissions:
id-token: write
steps:
Expand All @@ -46,3 +46,27 @@ jobs:
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

publish-to-test-pypi:
name: TestPyPI
needs:
- build
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/neo4j-graphrag

permissions:
id-token: write

steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit c60844f

Please sign in to comment.