1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 22:42:48 +03:00
wezterm/ci/create-release.sh
Wez Furlong 1e8ebdadfd ci: switch to GH CLI for uploading to releases
I lost a few hours over the weekend because the GH release uploads
are flakey and the action I was using doesn't internally perform
retries.  I had to manually delete the failed uploads from the release
and then re-trigger the builds across several platforms, several times
for both of the releases I pushed this weekend :-/

This commit speculatively switches over to using the GH cli in the
hopes that the error reporting is better, and also because it is
simpler to externally drive a retry loop.

Let's see how this goes.
2021-12-06 09:14:15 -07:00

5 lines
103 B
Bash
Executable File

#!/bin/bash
set -x
name="$1"
gh release view "$name" || gh release create --prerelease --draft "$name"