Skip to content

Commit 0fb491c

Browse files
authored
Merge pull request #125 from agentevals-dev/peterj/fixpublishissue
order the release pipeline
2 parents a4dc0c8 + 3f8bad2 commit 0fb491c

1 file changed

Lines changed: 27 additions & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v6
21+
with:
22+
ref: ${{ github.event.inputs.tag || github.ref_name }}
2123

2224
- uses: astral-sh/setup-uv@v7
2325
with:
@@ -42,29 +44,13 @@ jobs:
4244
dist/core/*.whl
4345
dist/bundle/*.whl
4446
45-
github-release:
46-
needs: build
47-
runs-on: ubuntu-latest
48-
permissions:
49-
contents: write
50-
51-
steps:
52-
- uses: actions/download-artifact@v8
53-
with:
54-
name: wheels
55-
path: dist/
56-
57-
- uses: softprops/action-gh-release@v2.5.0
58-
with:
59-
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
60-
files: dist/**/*.whl
61-
generate_release_notes: true
62-
6347
publish:
6448
needs: build
6549
runs-on: ubuntu-latest
6650
steps:
6751
- uses: actions/checkout@v6
52+
with:
53+
ref: ${{ github.event.inputs.tag || github.ref_name }}
6854

6955
- uses: astral-sh/setup-uv@v7
7056
with:
@@ -93,13 +79,34 @@ jobs:
9379
uv publish dist/* --token ${{ secrets.PYPI_TOKEN }}
9480
rm -rf src/agentevals/_static
9581
82+
github-release:
83+
needs: publish
84+
runs-on: ubuntu-latest
85+
permissions:
86+
contents: write
87+
88+
steps:
89+
- uses: actions/download-artifact@v8
90+
with:
91+
name: wheels
92+
path: dist/
93+
94+
- uses: softprops/action-gh-release@v2.5.0
95+
with:
96+
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
97+
files: dist/**/*.whl
98+
generate_release_notes: true
99+
96100
push-docker:
101+
needs: github-release
97102
runs-on: ubuntu-latest
98103
permissions:
99104
contents: read
100105
packages: write
101106
steps:
102107
- uses: actions/checkout@v6
108+
with:
109+
ref: ${{ github.event.inputs.tag || github.ref_name }}
103110

104111
- name: Login to GitHub Container Registry
105112
uses: docker/login-action@v4
@@ -131,6 +138,8 @@ jobs:
131138
packages: write
132139
steps:
133140
- uses: actions/checkout@v6
141+
with:
142+
ref: ${{ github.event.inputs.tag || github.ref_name }}
134143

135144
- name: Login to GitHub Container Registry
136145
uses: docker/login-action@v4

0 commit comments

Comments
 (0)