mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
Feature/auto releases (#1250)
* refactor: rename project from onsonr/sonr to sonr-io/snrd (#1249) * refactor: rename project from onsonr/sonr to sonr-io/snrd * refactor: update package paths to use sonr-io org --------- Co-authored-by: Prad N <prad@didao.xyz> * feat: introduce devbox for consistent development environment * feat: integrate Doppler for secrets management * feat: streamline release process with Devbox * <no value> * bump: version 0.6.3 → 0.6.4 * feat: enable commit-less version bumping * bump: version 0.6.4 → 0.6.5 * feat: streamline release process and update project metadata * feat: streamline build process and configuration * feat: streamline build process by removing release target * bump: version 0.6.5 → 0.6.6 * feat: upgrade to go 1.24 and align binary name * bump: version 0.6.6 → 0.6.7 * feat: streamline release process and update project metadata * bump: version 0.6.3 → 0.6.4 * feat: streamline development and release processes * feat: streamline development and release processes * refactor: streamline release process with Taskfile * feat: enhance goreleaser output with title for better UX * feat: consolidate release notes * bump: version 0.6.3 → 0.6.4 * feat: streamline release process with improved automation * feat: streamline development and release workflow * bump: version 0.6.3 → 0.6.4 * feat: streamline release process with Taskfile and conventional commits * bump: version 0.6.4 → 0.6.5 * feat: enhance Docker image publishing with piped credentials * chore: remove outdated changelog entries * bump: version 0.6.3 → 0.6.4 * feat: improve release process with interactive feedback * feat: enhance release process with real-time version feedback * bump: version 0.6.4 → 0.6.5 * feat: enhance release process with dynamic version display and streamlined automation * bump: version 0.6.3 → 0.6.4 * refactor: streamline release process by removing redundant version display * bump: version 0.6.4 → 0.6.5 * refactor: streamline release process and simplify dev environment * bump: version 0.6.3 → 0.6.4 * ci: simplify PR checks by removing redundant release validation * refactor: consolidate release workflows for improved maintainability * ci: enhance release workflow for automated version publishing --------- Co-authored-by: Prad N <prad@didao.xyz>
This commit is contained in:
+4
-4
@@ -16,7 +16,7 @@ detect_platform() {
|
||||
|
||||
# Function to get latest release version
|
||||
get_latest_version() {
|
||||
LATEST_VERSION=$(curl -s https://api.github.com/repos/onsonr/sonr/releases/latest | grep "tag_name" | cut -d '"' -f 4)
|
||||
LATEST_VERSION=$(curl -s https://api.github.com/repos/sonr-io/snrd/releases/latest | grep "tag_name" | cut -d '"' -f 4)
|
||||
LATEST_VERSION=${LATEST_VERSION#v} # Remove 'v' prefix
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ get_latest_version() {
|
||||
install_tar() {
|
||||
local OS_NAME=$1
|
||||
echo "Installing Sonr for ${OS_NAME} (${ARCH})..."
|
||||
DOWNLOAD_URL="https://github.com/onsonr/sonr/releases/download/v${LATEST_VERSION}/sonr_${LATEST_VERSION}_${OS_NAME}_${ARCH}.tar.gz"
|
||||
DOWNLOAD_URL="https://github.com/sonr-io/snrd/releases/download/v${LATEST_VERSION}/sonr_${LATEST_VERSION}_${OS_NAME}_${ARCH}.tar.gz"
|
||||
|
||||
# Download and extract
|
||||
echo "Downloading Sonr..."
|
||||
@@ -48,8 +48,8 @@ install_tar() {
|
||||
# Function to install on Debian/Ubuntu
|
||||
install_debian() {
|
||||
echo "Installing Sonr for Debian/Ubuntu (${ARCH})..."
|
||||
SONRD_URL="https://github.com/onsonr/sonr/releases/download/v${LATEST_VERSION}/sonrd_${LATEST_VERSION}_${ARCH}.deb"
|
||||
HWAY_URL="https://github.com/onsonr/sonr/releases/download/v${LATEST_VERSION}/hway_${LATEST_VERSION}_${ARCH}.deb"
|
||||
SONRD_URL="https://github.com/sonr-io/snrd/releases/download/v${LATEST_VERSION}/sonrd_${LATEST_VERSION}_${ARCH}.deb"
|
||||
HWAY_URL="https://github.com/sonr-io/snrd/releases/download/v${LATEST_VERSION}/hway_${LATEST_VERSION}_${ARCH}.deb"
|
||||
|
||||
# Download packages
|
||||
TMP_DIR=$(mktemp -d)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
GO_MOD_PACKAGE="github.com/onsonr/sonr"
|
||||
GO_MOD_PACKAGE="github.com/sonr-io/snrd"
|
||||
ROOT_DIR=$(git rev-parse --show-toplevel)
|
||||
|
||||
echo "Generating gogo proto code"
|
||||
@@ -49,4 +49,3 @@ for module in $base_namespace; do
|
||||
|
||||
rm -rf $module
|
||||
done
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
ROOT_DIR=$(git rev-parse --show-toplevel)
|
||||
|
||||
# Function to install a Go binary if it doesn't exist
|
||||
function go_install() {
|
||||
if ! command -v "$1" &>/dev/null; then
|
||||
echo "Installing $1..."
|
||||
go install "github.com/$1"
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to install a gh extension if it doesn't exist. Check gh <extension> for checking if installed
|
||||
function gh_ext_install() {
|
||||
gh extension install "$1"
|
||||
}
|
||||
|
||||
function main() {
|
||||
go_install go-task/task/v3/cmd/task@latest
|
||||
go_install a-h/templ/cmd/templ@latest
|
||||
go_install goreleaser/goreleaser/v2@latest
|
||||
|
||||
gh_ext_install johnmanjiro13/gh-bump
|
||||
}
|
||||
|
||||
main
|
||||
Reference in New Issue
Block a user