From 830b8da0ea0a08142509b7b8e0154f2361b5f214 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 19 Sep 2023 13:34:57 -0400 Subject: [PATCH] Update release workflow --- justfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index 607bab8..e747b01 100644 --- a/justfile +++ b/justfile @@ -95,19 +95,22 @@ linux-packages: just target=aarch64-unknown-linux-gnu package_type=rpm package just target=aarch64-unknown-linux-gnu package_type=deb package-termux -create-release: +create-release: clobber-release gh release create {{version}} --notes "{{notes}}" +clobber-release: + gh release delete {{version}} -y + upload-to-release: gh release view {{version}} || just msg="Release does not exist" die gh release upload {{version}} \ dist/aarch64-apple-darwin/upnotify-{{version}}-aarch64-apple-darwin.tar.gz \ dist/x86_64-apple-darwin/upnotify-{{version}}-x86_64-apple-darwin.tar.gz \ dist/aarch64-unknown-linux-gnu/upnotify-{{version}}-aarch64-unknown-linux-gnu.tar.gz \ - dist/aarch64-unknown-linux-gnu/upnotify-{{version}}.aarch64.rpm \ + dist/aarch64-unknown-linux-gnu/upnotify-{{version}}-1.aarch64.rpm \ dist/aarch64-unknown-linux-gnu/upnotify_{{version}}_arm64.deb \ dist/x86_64-unknown-linux-gnu/upnotify-{{version}}-x86_64-unknown-linux-gnu.tar.gz \ - dist/x86_64-unknown-linux-gnu/upnotify-{{version}}.x86_64.rpm \ + dist/x86_64-unknown-linux-gnu/upnotify-{{version}}-1.x86_64.rpm \ dist/x86_64-unknown-linux-gnu/upnotify_{{version}}_amd64.deb \ {{extra_packages}} \ --clobber