Commit b9bccbb
committed
fix(release): stop assets from silently overwriting each other
check-version:
- guard HEAD^ with git rev-parse so first commits don't crash the step
build:
- set fail-fast: false so one OS/target failing doesn't cancel the others
- simplify condition to version_changed (force already flows into it)
- give Swatinem/rust-cache a per-target key so the two macos-latest legs
(x86_64 / aarch64) stop sharing (and corrupting) one cache
- run apt-get update before installing musl-tools
release:
- gate explicitly on version_changed
- abort if VERSION is empty or artifact count != 4, instead of silently
shipping a partial release
- fix asset uploads: gh release upload --clobber matches by underlying
filename, not --label, so binaries that are all literally named "pik"
(linux-x86_64, macos-x86_64, macos-aarch64) clobbered each other one
after another, leaving only the last "pik" and the uniquely-named
pik.exe. Now each file is copied to a uniquely-named temp path before
upload so every asset survives.
- track per-file upload failures and exit 1 if any fail, instead of
succeeding silently1 parent 57e2b7f commit b9bccbb
1 file changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | | - | |
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
| |||
139 | 137 | | |
140 | 138 | | |
141 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
142 | 153 | | |
143 | 154 | | |
144 | 155 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
149 | 160 | | |
150 | 161 | | |
151 | 162 | | |
| |||
0 commit comments