Skip to content
Merged
Show file tree
Hide file tree
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
54 changes: 53 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:
- "by-framework-adk-v*"

permissions:
contents: read
contents: write
pull-requests: write

jobs:
resolve-package:
Expand Down Expand Up @@ -139,3 +140,54 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/

post-release:
runs-on: ubuntu-latest
needs:
- resolve-package
- publish
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create release branch
env:
PACKAGE_NAME: ${{ needs.resolve-package.outputs.package_name }}
VERSION: ${{ needs.resolve-package.outputs.version }}
run: |
RELEASE_BRANCH="release/${PACKAGE_NAME}/v${VERSION}"
git checkout -b "$RELEASE_BRANCH"
git push origin "$RELEASE_BRANCH"

- name: Bump version and create PR
env:
GH_TOKEN: ${{ github.token }}
PACKAGE_NAME: ${{ needs.resolve-package.outputs.package_name }}
PACKAGE_DIR: ${{ needs.resolve-package.outputs.package_dir }}
VERSION: ${{ needs.resolve-package.outputs.version }}
run: |
# Calculate next dev version (e.g., 0.2.1 -> 0.2.2.dev0)
IFS='.' read -ra PARTS <<< "$VERSION"
LAST_INDEX=$((${#PARTS[@]} - 1))
PARTS[$LAST_INDEX]=$((PARTS[$LAST_INDEX] + 1))
NEXT_VERSION=$(IFS='.'; echo "${PARTS[*]}").dev0

PYPROJECT="${PACKAGE_DIR}/pyproject.toml"
sed -i "s/version = \"${VERSION}\"/version = \"${NEXT_VERSION}\"/" "$PYPROJECT"

BUMP_BRANCH="bump/${PACKAGE_NAME}/v${NEXT_VERSION}"
git checkout -b "$BUMP_BRANCH"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add "$PYPROJECT"
git commit -m "chore: bump ${PACKAGE_NAME} version to ${NEXT_VERSION}"
git push origin "$BUMP_BRANCH"

gh pr create \
--title "chore: bump ${PACKAGE_NAME} to ${NEXT_VERSION}" \
--body "Auto-bump version after ${PACKAGE_NAME} v${VERSION} release." \
--base main \
--head "$BUMP_BRANCH"
4 changes: 2 additions & 2 deletions libs/by-framework-adk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "by-framework-adk"
version = "0.0.1"
version = "0.0.2"
description = "ADK integration for by-framework"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"by-framework>=0.2.0",
"by-framework>=0.2.1",
"google-adk",
"google-genai",
]
Expand Down
4 changes: 2 additions & 2 deletions libs/by-framework-history-byclaw/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "by-framework-history-byclaw"
version = "0.0.1"
version = "0.0.2"
description = "ByClaw remote history backend for by-framework"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"by-framework>=0.2.0",
"by-framework>=0.2.1",
]

[project.optional-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions libs/by-framework-history-postgres/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "by-framework-history-postgres"
version = "0.0.1"
version = "0.0.2"
description = "PostgreSQL history backend for by-framework"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"by-framework>=0.2.0",
"by-framework>=0.2.1",
"asyncpg>=0.29.0",
]

Expand Down
8 changes: 4 additions & 4 deletions libs/by-framework-langgraph/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "by-framework-langgraph"
version = "0.0.1"
version = "0.0.2"
description = "LangGraph integration for by-framework"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"by-framework>=0.2.0",
"by-framework>=0.2.1",
"langgraph>=1.1.6",
"langchain-core>=1.2.28",
]
Expand All @@ -20,10 +20,10 @@ dev = [
"ruff>=0.3.0",
]
langfuse = [
"by-framework-trace-langfuse>=0.0.1",
"by-framework-trace-langfuse>=0.0.2",
]
phoenix = [
"by-framework-trace-phoenix>=0.0.1",
"by-framework-trace-phoenix>=0.0.2",
"openinference-instrumentation-langchain>=0.1.0",
"openinference-instrumentation-openai>=0.1.0",
]
Expand Down
4 changes: 2 additions & 2 deletions libs/by-framework-trace-langfuse/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "by-framework-trace-langfuse"
version = "0.0.1"
version = "0.0.2"
description = "Langfuse trace provider for by-framework"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"by-framework>=0.2.0",
"by-framework>=0.2.1",
"langchain>=0.3.0",
"langfuse>=3.0.0",
]
Expand Down
4 changes: 2 additions & 2 deletions libs/by-framework-trace-phoenix/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "by-framework-trace-phoenix"
version = "0.0.1"
version = "0.0.2"
description = "Arize Phoenix trace provider for by-framework"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"by-framework>=0.2.0",
"by-framework>=0.2.1",
"arize-phoenix-otel>=0.3.0",
"opentelemetry-api>=1.25.0",
"opentelemetry-sdk>=1.25.0",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "by-framework"
version = "0.2.0"
version = "0.2.1"
description = "分布式 Agent 调度框架"
readme = "README.md"
requires-python = ">=3.12"
Expand Down
14 changes: 7 additions & 7 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading