From ff32d0e02650abb1d462011aab831105ee001391 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 23 Apr 2023 18:10:30 -0400 Subject: [PATCH] feat: initial version --- LICENSE | 2 +- publish.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 publish.sh diff --git a/LICENSE b/LICENSE index 2071b23..bd66f50 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) +Copyright (c) 2023 Hammer Technologies LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..dbaa9ba --- /dev/null +++ b/publish.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +if ! command -v go &>/dev/null; then + sudo apt-get update && sudo apt-get install -y golang +fi + +sudo go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest +sudo chmod +x /root/go/bin/nfpm + +yq -i ".version=\"${1}\"" nfpm.yaml +sudo /root/go/bin/nfpm package -p deb + +if ! command -v pip &>/dev/null; then + sudo apt-get update && sudo apt-get install -y python-pip +fi + +pip2 install --upgrade cloudsmith-cli +cloudsmith push deb lumeweb/lume-web-relay/ubuntu/focal *.deb +cloudsmith push deb lumeweb/lume-web-relay/ubuntu/jammy *.deb