Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Fix bump-version workflow to publish correct package

f-trycua3d65fefb079f
diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml
index 48b7c999c7..c7104bd9c6 100644
--- a/.github/workflows/bump-version.yml
+++ b/.github/workflows/bump-version.yml
@@ -32,6 +32,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
agent_version: ${{ steps.agent_version.outputs.version }}
+ computer_version: ${{ steps.computer_version.outputs.version }}
steps:
- name: Set package directory
id: package
@@ -103,14 +104,31 @@ jobs:
echo "Agent version: $VERSION"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
+ - name: Capture bumped computer version
+ if: ${{ inputs.service == 'cua-computer' }}
+ id: computer_version
+ run: |
+ cd libs/python/computer
+ VERSION=$(python -c "import tomllib; from pathlib import Path; data = tomllib.loads(Path('pyproject.toml').read_text()); print(data['project']['version'])")
+ echo "Computer version: $VERSION"
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
+
- name: Push changes
run: |
git push origin main --follow-tags
publish-agent:
needs: bump-version
- if: ${{ inputs.service == 'cua-agent' || inputs.service == 'cua-computer' }}
+ if: ${{ inputs.service == 'cua-agent' }}
uses: ./.github/workflows/pypi-publish-agent.yml
with:
version: ${{ needs.bump-version.outputs.agent_version }}
secrets: inherit
+
+ publish-computer:
+ needs: bump-version
+ if: ${{ inputs.service == 'cua-computer' }}
+ uses: ./.github/workflows/pypi-publish-computer.yml
+ with:
+ version: ${{ needs.bump-version.outputs.computer_version }}
+ secrets: inherit