Commit a2da12a
committed
ci: fold PyPI publish into the auto-release job
The previous setup had a separate `deploy` job gated on
`github.event_name == 'release'`, relying on the release.published
event to fire downstream. That stopped firing between v0.1.7 and
v0.1.10 — three GitHub Releases were created (v0.1.8, v0.1.9, v0.1.10)
but none triggered the deploy, so PyPI fell three versions behind
the git tags. Manual upload was needed to recover.
Causes (any of):
- GH_PAT expired or scope changed; action-gh-release silently
fell back to GITHUB_TOKEN, and releases created via
GITHUB_TOKEN never trigger downstream workflows by design.
- Repository owners can't grant a Release-creation event from
a workflow without specifically attaching a PAT.
Fix: build + publish in the same job, right after the version bump
and Release creation. No more event indirection.
Also adds a workflow_dispatch-only `republish` job (skip-existing=true)
for re-running the upload manually if a future release is half-broken.1 parent 225213d commit a2da12a
1 file changed
Lines changed: 38 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
93 | 122 | | |
94 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
95 | 126 | | |
96 | | - | |
97 | | - | |
| 127 | + | |
| 128 | + | |
98 | 129 | | |
99 | 130 | | |
100 | | - | |
101 | 131 | | |
102 | | - | |
| 132 | + | |
103 | 133 | | |
104 | 134 | | |
105 | 135 | | |
106 | | - | |
107 | | - | |
| 136 | + | |
108 | 137 | | |
109 | 138 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 139 | + | |
113 | 140 | | |
114 | 141 | | |
115 | 142 | | |
| |||
119 | 146 | | |
120 | 147 | | |
121 | 148 | | |
| 149 | + | |
0 commit comments