Commit 1978709
fix: checkout release tag in build job and add manual re-publish trigger
Root cause of 0.1.3 not publishing to PyPI: the build job used
actions/checkout@v6 without a ref, so it checked out GITHUB_SHA
(the triggering commit) rather than the release tag. When the
release-please action tags a release during an earlier push, the
build job can check out a commit where pyproject.toml still has
the old version, causing a version mismatch and build failure.
Fixes:
- Build job now checks out the release tag ref explicitly, ensuring
pyproject.toml always matches the tagged version
- Derive expected version from the tag name instead of the
release-please version output (more reliable)
- Add workflow_dispatch with a tag input so failed releases can be
re-published without needing a new commit: run the workflow
manually with tag=promptfoo-v0.1.3 to re-trigger build+publish
- Run unit tests in the build job before publishing (was just an
import check before)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ecd2226 commit 1978709
1 file changed
+34
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
31 | | - | |
32 | 38 | | |
33 | | - | |
34 | 39 | | |
35 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
36 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
37 | 57 | | |
| 58 | + | |
| 59 | + | |
38 | 60 | | |
39 | 61 | | |
40 | 62 | | |
| |||
46 | 68 | | |
47 | 69 | | |
48 | 70 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 71 | + | |
| 72 | + | |
53 | 73 | | |
54 | 74 | | |
55 | 75 | | |
56 | 76 | | |
57 | | - | |
| 77 | + | |
58 | 78 | | |
59 | | - | |
| 79 | + | |
| 80 | + | |
60 | 81 | | |
61 | | - | |
| 82 | + | |
62 | 83 | | |
63 | 84 | | |
64 | | - | |
| 85 | + | |
65 | 86 | | |
66 | 87 | | |
67 | 88 | | |
| |||
74 | 95 | | |
75 | 96 | | |
76 | 97 | | |
77 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
78 | 101 | | |
79 | 102 | | |
80 | 103 | | |
| |||
0 commit comments