Files
firezone/scripts/build/tauri-upload-linux.sh
Reactor Scram 7daa1a9ec3 chore(ci): build RPM package (#7190)
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.
2024-11-01 18:06:09 +00:00

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"