mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Refs #6145 This bundles aarch64 and x86_64 RPMs in CI and CD. We'll need a 2nd PR to add everything to the changelog and knowledge base, after the first release with RPMs is cut.
22 lines
595 B
Bash
Executable File
22 lines
595 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euox pipefail
|
|
|
|
# This artifact name is tied to the update checker in `gui-client/src-tauri/src/client/updates.rs`
|
|
|
|
# Only clobber existing release assets if the release is a draft
|
|
is_draft=$(gh release view "$TAG_NAME" --json isDraft --jq '.isDraft' | tr -d '\n')
|
|
if [[ "$is_draft" == "true" ]]; then
|
|
clobber="--clobber"
|
|
else
|
|
clobber=""
|
|
fi
|
|
|
|
gh release upload "$TAG_NAME" \
|
|
"$BINARY_DEST_PATH".deb \
|
|
"$BINARY_DEST_PATH".deb.sha256sum.txt \
|
|
"$BINARY_DEST_PATH".rpm \
|
|
"$BINARY_DEST_PATH".rpm.sha256sum.txt \
|
|
$clobber \
|
|
--repo "$REPOSITORY"
|