fix(aws-strands): replace "Hello" fallback with empty string on FE-tool continuation runs #1009
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Python Preview | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| concurrency: | |
| group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | |
| with: | |
| version: ">=0.8.0" | |
| - name: Compute preview version | |
| id: version | |
| run: | | |
| TIMESTAMP=$(git log -1 --format=%ct HEAD) | |
| VERSION="0.0.0.dev${TIMESTAMP}" | |
| echo "version=${VERSION}" >> "$GITHUB_OUTPUT" | |
| echo "Preview version: ${VERSION}" | |
| - name: Rewrite pyproject.toml versions | |
| run: uv run python scripts/rewrite-python-preview-versions.py ${STEPS_VERSION_OUTPUTS_VERSION} | |
| env: | |
| STEPS_VERSION_OUTPUTS_VERSION: ${{ steps.version.outputs.version }} | |
| - name: Build ag-ui-protocol | |
| working-directory: sdks/python | |
| run: uv build | |
| - name: Build ag-ui-langgraph | |
| working-directory: integrations/langgraph/python | |
| run: uv build | |
| - name: Build ag-ui-crewai | |
| working-directory: integrations/crew-ai/python | |
| run: uv build | |
| - name: Build ag-ui-agent-spec | |
| working-directory: integrations/agent-spec/python | |
| run: uv build | |
| - name: Build ag_ui_adk | |
| working-directory: integrations/adk-middleware/python | |
| run: uv build | |
| - name: Build ag_ui_strands | |
| working-directory: integrations/aws-strands/python | |
| run: uv build | |
| - name: Collect dist artifacts | |
| run: | | |
| mkdir -p dist-preview | |
| cp sdks/python/dist/* dist-preview/ | |
| cp integrations/langgraph/python/dist/* dist-preview/ | |
| cp integrations/crew-ai/python/dist/* dist-preview/ | |
| cp integrations/agent-spec/python/dist/* dist-preview/ | |
| cp integrations/adk-middleware/python/dist/* dist-preview/ | |
| cp integrations/aws-strands/python/dist/* dist-preview/ | |
| echo "Artifacts to publish:" | |
| ls -1 dist-preview/ | |
| # Save metadata so the publish workflow can find the PR and version. | |
| - name: Save PR metadata | |
| run: | | |
| mkdir -p pr-metadata | |
| echo "${{ github.event.pull_request.number }}" > pr-metadata/pr-number | |
| echo "${STEPS_VERSION_OUTPUTS_VERSION}" > pr-metadata/version | |
| echo "${{ github.sha }}" > pr-metadata/sha | |
| env: | |
| STEPS_VERSION_OUTPUTS_VERSION: ${{ steps.version.outputs.version }} | |
| - name: Upload dist artifacts | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: python-preview-dist | |
| path: dist-preview/ | |
| - name: Upload PR metadata | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: python-preview-metadata | |
| path: pr-metadata/ |