rename package in makefile #19
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'Release tag (e.g. v0.1.0)' | |
| required: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| cache: npm | |
| cache-dependency-path: ui/package-lock.json | |
| - name: Build core and bundled wheels | |
| run: make release | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: wheels | |
| path: | | |
| dist/core/*.whl | |
| dist/bundle/*.whl | |
| github-release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: wheels | |
| path: dist/ | |
| - uses: softprops/action-gh-release@v2.5.0 | |
| with: | |
| tag_name: ${{ github.event.inputs.tag || github.ref_name }} | |
| files: dist/**/*.whl | |
| generate_release_notes: true | |
| publish: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout GitHub Action' | |
| uses: actions/checkout@main | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| # Repo root cwd: uv build puts artifacts in ./dist; uv publish looks for dist/* relative to cwd. | |
| - name: 'Release Python Packages' | |
| env: | |
| VERSION: ${{ github.event.inputs.tag || github.ref_name }} | |
| run: | | |
| uv sync --package agentevals-cli --all-extras | |
| uv version "$VERSION" --package agentevals-cli | |
| uv build --package agentevals-cli | |
| uv publish dist/* --token ${{ secrets.PYPI_TOKEN }} |