|
66 | 66 | with: |
67 | 67 | fetch-depth: 0 |
68 | 68 |
|
69 | | - - name: Create release tag |
70 | | - env: |
71 | | - TAG_NAME: ${{ needs.release-please.outputs.package-server-ai-tag-name }} |
72 | | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
73 | | - run: | |
74 | | - if gh api "repos/${{ github.repository }}/git/ref/tags/${TAG_NAME}" >/dev/null 2>&1; then |
75 | | - echo "Tag ${TAG_NAME} already exists, skipping creation." |
76 | | - else |
77 | | - echo "Creating tag ${TAG_NAME}." |
78 | | - git config user.name "github-actions[bot]" |
79 | | - git config user.email "github-actions[bot]@users.noreply.github.com" |
80 | | - git tag "${TAG_NAME}" |
81 | | - git push origin "${TAG_NAME}" |
82 | | - fi |
83 | | -
|
84 | 69 | - uses: ./.github/actions/ci |
85 | 70 | with: |
86 | 71 | workspace_path: packages/sdk/server-ai |
@@ -126,21 +111,6 @@ jobs: |
126 | 111 | with: |
127 | 112 | fetch-depth: 0 |
128 | 113 |
|
129 | | - - name: Create release tag |
130 | | - env: |
131 | | - TAG_NAME: ${{ needs.release-please.outputs.package-server-ai-langchain-tag-name }} |
132 | | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
133 | | - run: | |
134 | | - if gh api "repos/${{ github.repository }}/git/ref/tags/${TAG_NAME}" >/dev/null 2>&1; then |
135 | | - echo "Tag ${TAG_NAME} already exists, skipping creation." |
136 | | - else |
137 | | - echo "Creating tag ${TAG_NAME}." |
138 | | - git config user.name "github-actions[bot]" |
139 | | - git config user.email "github-actions[bot]@users.noreply.github.com" |
140 | | - git tag "${TAG_NAME}" |
141 | | - git push origin "${TAG_NAME}" |
142 | | - fi |
143 | | -
|
144 | 114 | - uses: ./.github/actions/ci |
145 | 115 | with: |
146 | 116 | workspace_path: packages/ai-providers/server-ai-langchain |
@@ -218,21 +188,6 @@ jobs: |
218 | 188 | with: |
219 | 189 | fetch-depth: 0 |
220 | 190 |
|
221 | | - - name: Create release tag |
222 | | - env: |
223 | | - TAG_NAME: ${{ needs.release-please.outputs.package-server-ai-openai-tag-name }} |
224 | | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
225 | | - run: | |
226 | | - if gh api "repos/${{ github.repository }}/git/ref/tags/${TAG_NAME}" >/dev/null 2>&1; then |
227 | | - echo "Tag ${TAG_NAME} already exists, skipping creation." |
228 | | - else |
229 | | - echo "Creating tag ${TAG_NAME}." |
230 | | - git config user.name "github-actions[bot]" |
231 | | - git config user.email "github-actions[bot]@users.noreply.github.com" |
232 | | - git tag "${TAG_NAME}" |
233 | | - git push origin "${TAG_NAME}" |
234 | | - fi |
235 | | -
|
236 | 191 | - uses: ./.github/actions/ci |
237 | 192 | with: |
238 | 193 | workspace_path: packages/ai-providers/server-ai-openai |
@@ -278,21 +233,6 @@ jobs: |
278 | 233 | with: |
279 | 234 | fetch-depth: 0 |
280 | 235 |
|
281 | | - - name: Create release tag |
282 | | - env: |
283 | | - TAG_NAME: ${{ needs.release-please.outputs.package-server-ai-optimization-tag-name }} |
284 | | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
285 | | - run: | |
286 | | - if gh api "repos/${{ github.repository }}/git/ref/tags/${TAG_NAME}" >/dev/null 2>&1; then |
287 | | - echo "Tag ${TAG_NAME} already exists, skipping creation." |
288 | | - else |
289 | | - echo "Creating tag ${TAG_NAME}." |
290 | | - git config user.name "github-actions[bot]" |
291 | | - git config user.email "github-actions[bot]@users.noreply.github.com" |
292 | | - git tag "${TAG_NAME}" |
293 | | - git push origin "${TAG_NAME}" |
294 | | - fi |
295 | | -
|
296 | 236 | - uses: ./.github/actions/ci |
297 | 237 | with: |
298 | 238 | workspace_path: packages/optimization |
@@ -324,50 +264,3 @@ jobs: |
324 | 264 | with: |
325 | 265 | password: ${{ env.PYPI_AUTH_TOKEN }} |
326 | 266 | packages-dir: packages/optimization/dist/ |
327 | | - |
328 | | - publish-release: |
329 | | - needs: ['release-please', 'release-server-ai', 'release-server-ai-langchain', 'release-server-ai-openai', 'release-server-ai-optimization'] |
330 | | - if: ${{ always() && needs.release-please.result == 'success' && (needs.release-please.outputs.package-server-ai-released == 'true' || needs.release-please.outputs.package-server-ai-langchain-released == 'true' || needs.release-please.outputs.package-server-ai-openai-released == 'true' || needs.release-please.outputs.package-server-ai-optimization-released == 'true') }} |
331 | | - runs-on: ubuntu-latest |
332 | | - permissions: |
333 | | - contents: write |
334 | | - steps: |
335 | | - - name: Publish server-ai release |
336 | | - if: ${{ needs.release-please.outputs.package-server-ai-released == 'true' && needs.release-server-ai.result == 'success' }} |
337 | | - env: |
338 | | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
339 | | - TAG_NAME: ${{ needs.release-please.outputs.package-server-ai-tag-name }} |
340 | | - run: > |
341 | | - gh release edit "$TAG_NAME" |
342 | | - --repo ${{ github.repository }} |
343 | | - --draft=false |
344 | | -
|
345 | | - - name: Publish server-ai-langchain release |
346 | | - if: ${{ needs.release-please.outputs.package-server-ai-langchain-released == 'true' && needs.release-server-ai-langchain.result == 'success' }} |
347 | | - env: |
348 | | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
349 | | - TAG_NAME: ${{ needs.release-please.outputs.package-server-ai-langchain-tag-name }} |
350 | | - run: > |
351 | | - gh release edit "$TAG_NAME" |
352 | | - --repo ${{ github.repository }} |
353 | | - --draft=false |
354 | | -
|
355 | | - - name: Publish server-ai-openai release |
356 | | - if: ${{ needs.release-please.outputs.package-server-ai-openai-released == 'true' && needs.release-server-ai-openai.result == 'success' }} |
357 | | - env: |
358 | | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
359 | | - TAG_NAME: ${{ needs.release-please.outputs.package-server-ai-openai-tag-name }} |
360 | | - run: > |
361 | | - gh release edit "$TAG_NAME" |
362 | | - --repo ${{ github.repository }} |
363 | | - --draft=false |
364 | | -
|
365 | | - - name: Publish server-ai-optimization release |
366 | | - if: ${{ needs.release-please.outputs.package-server-ai-optimization-released == 'true' && needs.release-server-ai-optimization.result == 'success' }} |
367 | | - env: |
368 | | - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
369 | | - TAG_NAME: ${{ needs.release-please.outputs.package-server-ai-optimization-tag-name }} |
370 | | - run: > |
371 | | - gh release edit "$TAG_NAME" |
372 | | - --repo ${{ github.repository }} |
373 | | - --draft=false |
0 commit comments