Skip to content

Commit ff949e5

Browse files
fix release gh action
1 parent 929899d commit ff949e5

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ jobs:
4646
- uses: actions/upload-artifact@v7
4747
with:
4848
name: wheels
49-
path: dist/*.whl
49+
path: |
50+
dist/core/*.whl
51+
dist/bundle/*.whl
5052
5153
github-release:
5254
needs: build
@@ -63,6 +65,6 @@ jobs:
6365
- uses: softprops/action-gh-release@v2.5.0
6466
with:
6567
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
66-
files: dist/*.whl
68+
files: dist/**/*.whl
6769
generate_release_notes: true
6870

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,23 @@ build-bundle: build-ui
1515
uv build
1616
rm -rf src/agentevals/_static
1717

18+
CORE_WHEEL_NAME := agentevals-$(VERSION)-core-py3-none-any.whl
19+
BUNDLE_WHEEL_NAME := agentevals-$(VERSION)-bundle-py3-none-any.whl
20+
1821
release: clean build-ui
1922
mkdir -p dist/core dist/bundle
2023
uv build
21-
mv $(WHEEL) dist/core/
24+
mv $(WHEEL) dist/core/$(CORE_WHEEL_NAME)
2225
mv dist/*.tar.gz dist/core/
2326
rm -rf src/agentevals/_static
2427
cp -r ui/dist src/agentevals/_static
2528
uv build
26-
mv $(WHEEL) dist/bundle/
29+
mv $(WHEEL) dist/bundle/$(BUNDLE_WHEEL_NAME)
2730
mv dist/*.tar.gz dist/bundle/
2831
rm -rf src/agentevals/_static
2932
@echo "Built:"
30-
@echo " core: dist/core/$(notdir $(WHEEL))"
31-
@echo " bundle: dist/bundle/$(notdir $(WHEEL))"
33+
@echo " core: dist/core/$(CORE_WHEEL_NAME)"
34+
@echo " bundle: dist/bundle/$(BUNDLE_WHEEL_NAME)"
3235

3336
dev-backend:
3437
uv run agentevals serve --dev

0 commit comments

Comments
 (0)