Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: release-dists
path: .
path: release-dists

- name: Publish agent-control-models to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -113,7 +113,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: release-dists
path: .
path: release-dists

- name: Publish evaluator distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -122,6 +122,30 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

publish-server:
runs-on: ubuntu-latest
needs: [release, publish-evaluators]
if: >-
always() &&
needs.release.outputs.released == 'true' &&
needs.publish-evaluators.result == 'success'
permissions:
Comment thread
abhinav-galileo marked this conversation as resolved.
id-token: write

steps:
Comment thread
abhinav-galileo marked this conversation as resolved.
- name: Download built distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: release-dists

- name: Publish agent-control-server to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: release-dists/server/dist/
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

publish-sdk:
runs-on: ubuntu-latest
needs: [release, publish-evaluators]
Expand All @@ -137,7 +161,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: release-dists
path: .
path: release-dists

- name: Publish agent-control-sdk to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand All @@ -148,8 +172,10 @@ jobs:

upload-release-assets:
runs-on: ubuntu-latest
needs: [release, publish-sdk]
if: needs.release.outputs.released == 'true'
needs: [release, publish-models, publish-evaluators, publish-server, publish-sdk]
if: >-
always() &&
needs.release.outputs.released == 'true'
permissions:
contents: write

Expand All @@ -158,7 +184,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: release-dists
path: .
path: release-dists

- name: Upload to GitHub Release
uses: python-semantic-release/upload-to-gh-release@main
Expand Down
Loading