kikocis/GraphRAG-SDK public
Changesets · Branches · Tags · Compare
| Changeset | b6ff0beb7359abf3a849f1d3c216bdc2b4b142c5310c99487829c86addced4c3 |
|---|---|
| Author | Roi Lipman <roilipman@gmail.com> · 2024-06-06 09:52 +03:00 |
| Committer | Roi Lipman <roilipman@gmail.com> · 2024-06-06 09:52 +03:00 |
| Parents | 2c7047a40b09 |
1 file changed
modified .github/workflows/pypi-publish.yaml +8 −13
| @@ -4,19 +4,14 @@ | ||
| 4 | 4 | push: |
| 5 | 5 | tags: |
| 6 | 6 | - "v*.*.*" |
| 7 | - | |
| 8 | -# .github/workflows/ci-cd.yml | |
| 9 | 7 | jobs: |
| 10 | - pypi-publish: | |
| 11 | - name: Upload release to PyPI | |
| 8 | + build: | |
| 12 | 9 | runs-on: ubuntu-latest |
| 13 | - environment: | |
| 14 | - name: pypi | |
| 15 | - url: https://pypi.org/p/graphrag_sdk | |
| 16 | - permissions: | |
| 17 | - id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
| 18 | 10 | steps: |
| 19 | - # retrieve your distributions here | |
| 20 | - | |
| 21 | - - name: Publish package distributions to PyPI | |
| 22 | - uses: pypa/gh-action-pypi-publish@release/v1 | |
| 11 | + - uses: actions/checkout@v4 | |
| 12 | + - name: Build and publish to pypi | |
| 13 | + uses: JRubics/poetry-publish@v2.0 | |
| 14 | + with: | |
| 15 | + pypi_token: ${{ secrets.PYPI_API_TOKEN }} | |
| 16 | + build_format: "sdist" | |
| 17 | + ignore_dev_requirements: "yes" |