2023-04-23 12:46:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if ! command -v go &>/dev/null; then
|
|
|
|
sudo apt-get update && sudo apt-get install -y golang
|
|
|
|
fi
|
|
|
|
|
2023-04-21 23:31:57 +00:00
|
|
|
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
|
|
|
|
go install github.com/mikefarah/yq/yq@latest
|
|
|
|
|
|
|
|
yq -i ".version=\"${1}\"" nfpm.yaml
|
|
|
|
nfpm package -p deb
|
|
|
|
pip install --upgrade cloudsmith-cli
|
|
|
|
cloudsmith push deb lumeweb/lume-web-relay *.deb
|