diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..74f84e5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,47 @@ +name: Release + +on: + push: + tags: ['v*'] + +permissions: + contents: write + +jobs: + release: + name: Build & Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '22' + cache: npm + cache-dependency-path: studio-frontend/package-lock.json + + - name: Build frontend + working-directory: studio-frontend + run: | + npm ci + npm run build + + - name: Stage frontend into package + run: | + mkdir -p src/fireflyframework_agentic_studio/static + cp -r studio-frontend/build/. src/fireflyframework_agentic_studio/static/ + + - uses: astral-sh/setup-uv@e58605a9b6da7c637471fab8847a5e5a6b8df081 # v5 + with: + enable-cache: true + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + + - run: uv build + + - name: Create GitHub Release + env: + GH_TOKEN: ${{ github.token }} + TAG_NAME: ${{ github.ref_name }} + run: gh release create "$TAG_NAME" dist/* --generate-notes diff --git a/CHANGELOG.md b/CHANGELOG.md index e82e834..6f64ac7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to `fireflyframework-agentic-studio` will be documented in t The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [26.02.07] — Initial Release +## [26.04.28] — Initial Release Studio extracted from `fireflyframework-agentic` (formerly `fireflyframework-genai`) into its own repository. See [MIGRATION](README.md#migration-from-fireflyframework-agenticstudio) diff --git a/pyproject.toml b/pyproject.toml index e31f99b..d4e767c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "fireflyframework-agentic-studio" -version = "26.02.07" +version = "26.04.28" description = "Visual IDE and runtime for fireflyframework-agentic. Drag-and-drop pipeline builder, code generation, AI assistant, project API, scheduling, and tunnel exposure." readme = "README.md" license = { text = "Apache-2.0" } @@ -61,8 +61,10 @@ build-backend = "uv_build" # TODO: remove once fireflyframework-agentic is published to PyPI. # Until then, resolve it directly from GitHub. +# To pin a reproducible release instead of tracking main, swap the line below for: +# fireflyframework-agentic = { git = "https://github.com/fireflyframework/fireflyframework-agentic.git", tag = "v26.04.28" } [tool.uv.sources] -fireflyframework-agentic = { git = "https://github.com/fireflyframework/fireflyframework-agentic.git", branch = "refactor/rename-to-agentic" } +fireflyframework-agentic = { git = "https://github.com/fireflyframework/fireflyframework-agentic.git", branch = "main" } [tool.ruff] target-version = "py313" diff --git a/src/fireflyframework_agentic_studio/assistant/agent.py b/src/fireflyframework_agentic_studio/assistant/agent.py index 1d6a630..1705068 100644 --- a/src/fireflyframework_agentic_studio/assistant/agent.py +++ b/src/fireflyframework_agentic_studio/assistant/agent.py @@ -521,7 +521,7 @@ async def get_framework_docs() -> str: # Framework version try: - from fireflyframework_agentic._version import __version__ + from fireflyframework_agentic import __version__ docs["version"] = __version__ except Exception: diff --git a/src/fireflyframework_agentic_studio/assistant/smith.py b/src/fireflyframework_agentic_studio/assistant/smith.py index c8a84b0..8a83d2c 100644 --- a/src/fireflyframework_agentic_studio/assistant/smith.py +++ b/src/fireflyframework_agentic_studio/assistant/smith.py @@ -382,7 +382,7 @@ async def get_framework_docs() -> str: docs: dict[str, Any] = {} try: - from fireflyframework_agentic._version import __version__ + from fireflyframework_agentic import __version__ docs["version"] = __version__ except Exception: