|
1 | 1 | name: Release |
2 | 2 |
|
3 | | -# Triggered manually: create a tag v0.3.0 → GitHub Release → this workflow publishes to PyPI. |
4 | | -# Tag format: v{MAJOR}.{MINOR}.{PATCH} → stable, publishes to PyPI |
5 | | -# v{MAJOR}.{MINOR}.{PATCH}a{N} → pre-release, publishes to TestPyPI only |
| 3 | +# Triggered automatically by release-please (see release-please.yml): |
| 4 | +# 1. Merge release PR → release-please tags the commit → this workflow publishes to PyPI. |
| 5 | +# Tag format: v{MAJOR}.{MINOR}.{PATCH} → stable release |
| 6 | +# v{MAJOR}.{MINOR}.{PATCH}a{N} → pre-release (published to PyPI with --pre required) |
6 | 7 |
|
7 | 8 | on: |
8 | 9 | push: |
@@ -53,36 +54,10 @@ jobs: |
53 | 54 | path: ${{ matrix.package.path }}/dist/ |
54 | 55 | retention-days: 1 |
55 | 56 |
|
56 | | - publish-testpypi: |
57 | | - name: Publish to TestPyPI (pre-release) |
58 | | - runs-on: ubuntu-latest |
59 | | - needs: build |
60 | | - if: contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') |
61 | | - environment: testpypi |
62 | | - permissions: |
63 | | - id-token: write |
64 | | - strategy: |
65 | | - matrix: |
66 | | - package: |
67 | | - - coordinode |
68 | | - - langchain-coordinode |
69 | | - - llama-index-graph-stores-coordinode |
70 | | - steps: |
71 | | - - uses: actions/download-artifact@v4 |
72 | | - with: |
73 | | - name: dist-${{ matrix.package }} |
74 | | - path: dist/ |
75 | | - |
76 | | - - uses: pypa/gh-action-pypi-publish@release/v1 |
77 | | - with: |
78 | | - repository-url: https://test.pypi.org/legacy/ |
79 | | - packages-dir: dist/ |
80 | | - |
81 | 57 | publish-pypi: |
82 | | - name: Publish to PyPI (stable) |
| 58 | + name: Publish to PyPI |
83 | 59 | runs-on: ubuntu-latest |
84 | 60 | needs: build |
85 | | - if: "!contains(github.ref_name, 'a') && !contains(github.ref_name, 'b') && !contains(github.ref_name, 'rc')" |
86 | 61 | environment: pypi |
87 | 62 | permissions: |
88 | 63 | id-token: write |
|
120 | 95 | prerelease: ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') }} |
121 | 96 | generate_release_notes: true |
122 | 97 | files: dist/* |
| 98 | + |
0 commit comments