Skip to content

Commit 4474bcb

Browse files
committed
order the pipeline, checkout should include tag/ref
Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
1 parent 1115a82 commit 4474bcb

1 file changed

Lines changed: 27 additions & 19 deletions

File tree

.github/workflows/release.yml

Lines changed: 27 additions & 19 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 }}
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 }}
6854

6955
- uses: astral-sh/setup-uv@v7
7056
with:
@@ -93,14 +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:
97-
needs: build
101+
needs: github-release
98102
runs-on: ubuntu-latest
99103
permissions:
100104
contents: read
101105
packages: write
102106
steps:
103107
- uses: actions/checkout@v6
108+
with:
109+
ref: ${{ github.event.inputs.tag || github.ref }}
104110

105111
- name: Login to GitHub Container Registry
106112
uses: docker/login-action@v4
@@ -132,6 +138,8 @@ jobs:
132138
packages: write
133139
steps:
134140
- uses: actions/checkout@v6
141+
with:
142+
ref: ${{ github.event.inputs.tag || github.ref }}
135143

136144
- name: Login to GitHub Container Registry
137145
uses: docker/login-action@v4

0 commit comments

Comments
 (0)