From 1115a82a4deae23b76bf0eb848116d2344e5b58c Mon Sep 17 00:00:00 2001 From: Peter Jausovec Date: Mon, 20 Apr 2026 10:06:59 +0200 Subject: [PATCH 1/3] docker push should depend on build Signed-off-by: Peter Jausovec --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dff9127..fd9021c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -94,6 +94,7 @@ jobs: rm -rf src/agentevals/_static push-docker: + needs: build runs-on: ubuntu-latest permissions: contents: read From 4474bcb14cbe3cc5360fbd33d53db1cebbaf1f50 Mon Sep 17 00:00:00 2001 From: Peter Jausovec Date: Mon, 20 Apr 2026 10:12:25 +0200 Subject: [PATCH 2/3] order the pipeline, checkout should include tag/ref Signed-off-by: Peter Jausovec --- .github/workflows/release.yml | 46 ++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd9021c..ba1c757 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 + with: + ref: ${{ github.event.inputs.tag || github.ref }} - uses: astral-sh/setup-uv@v7 with: @@ -42,29 +44,13 @@ jobs: 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: - uses: actions/checkout@v6 + with: + ref: ${{ github.event.inputs.tag || github.ref }} - uses: astral-sh/setup-uv@v7 with: @@ -93,14 +79,34 @@ jobs: uv publish dist/* --token ${{ secrets.PYPI_TOKEN }} rm -rf src/agentevals/_static + github-release: + needs: publish + 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 + push-docker: - needs: build + needs: github-release runs-on: ubuntu-latest permissions: contents: read packages: write steps: - uses: actions/checkout@v6 + with: + ref: ${{ github.event.inputs.tag || github.ref }} - name: Login to GitHub Container Registry uses: docker/login-action@v4 @@ -132,6 +138,8 @@ jobs: packages: write steps: - uses: actions/checkout@v6 + with: + ref: ${{ github.event.inputs.tag || github.ref }} - name: Login to GitHub Container Registry uses: docker/login-action@v4 From 3f8bad2321da364a0dadeedfae95a572b35381ea Mon Sep 17 00:00:00 2001 From: Peter Jausovec Date: Mon, 20 Apr 2026 10:51:27 +0200 Subject: [PATCH 3/3] use ref_name Signed-off-by: Peter Jausovec --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba1c757..f2c3bfc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v6 with: - ref: ${{ github.event.inputs.tag || github.ref }} + ref: ${{ github.event.inputs.tag || github.ref_name }} - uses: astral-sh/setup-uv@v7 with: @@ -50,7 +50,7 @@ jobs: steps: - uses: actions/checkout@v6 with: - ref: ${{ github.event.inputs.tag || github.ref }} + ref: ${{ github.event.inputs.tag || github.ref_name }} - uses: astral-sh/setup-uv@v7 with: @@ -106,7 +106,7 @@ jobs: steps: - uses: actions/checkout@v6 with: - ref: ${{ github.event.inputs.tag || github.ref }} + ref: ${{ github.event.inputs.tag || github.ref_name }} - name: Login to GitHub Container Registry uses: docker/login-action@v4 @@ -139,7 +139,7 @@ jobs: steps: - uses: actions/checkout@v6 with: - ref: ${{ github.event.inputs.tag || github.ref }} + ref: ${{ github.event.inputs.tag || github.ref_name }} - name: Login to GitHub Container Registry uses: docker/login-action@v4