Commit 83bff83
committed
ci: add automated hackage publishing and streamline release workflow
Implements comprehensive automated publishing to Hackage with proper
validation and error handling, while consolidating the CI/CD pipeline
for more efficient releases.
Publishing improvements:
- Switch from curl-based uploads to native cabal upload command
- Configure credentials via cabal config file instead of curl auth
- Add automatic version extraction from cabal file
- Implement duplicate upload detection to prevent failures
- Support both candidate and production publishing modes
Release workflow enhancements:
- Merge separate publish job into release job for efficiency
- Add write permissions for automated release creation
- Support both tag-based and manual release triggers
- Switch to softprops/action-gh-release for robust releases
- Remove redundant artifact upload steps
Configuration changes:
- Add HACKAGE_USERNAME and HACKAGE_PASSWORD secret configuration
- Install Haskell toolchain in release job for cabal commands
This change significantly simplifies the deployment pipeline while
adding proper error handling and validation to prevent common
publishing issues like duplicate uploads or missing credentials.1 parent 9eb74d4 commit 83bff83
1 file changed
+36
-57
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
188 | | - | |
| 191 | + | |
189 | 192 | | |
190 | 193 | | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
195 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
196 | 205 | | |
197 | 206 | | |
198 | 207 | | |
| |||
202 | 211 | | |
203 | 212 | | |
204 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
205 | 236 | | |
206 | 237 | | |
207 | 238 | | |
| |||
216 | 247 | | |
217 | 248 | | |
218 | 249 | | |
219 | | - | |
220 | | - | |
221 | | - | |
| 250 | + | |
222 | 251 | | |
223 | | - | |
224 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
225 | 255 | | |
226 | 256 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
0 commit comments