Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmmjackson committed Sep 19, 2023
1 parent 001e3e6 commit 830b8da
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 830b8da

Please sign in to comment.