mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
* feat: add docs and CI workflow for publishing to onsonr.dev * (refactor): Move hway,motr executables to their own repos * feat: simplify devnet and testnet configurations * refactor: update import path for didcrypto package * docs(networks): Add README with project overview, architecture, and community links * refactor: Move network configurations to deploy directory * build: update golang version to 1.23 * refactor: move logger interface to appropriate package * refactor: Move devnet configuration to networks/devnet * chore: improve release process with date variable * (chore): Move Crypto Library * refactor: improve code structure and readability in DID module * feat: integrate Trunk CI checks * ci: optimize CI workflow by removing redundant build jobs * feat: integrate Trunk CI checks, simplify devnet and testnet configurations, add docs and CI for onsonr.dev publishing, automate releases using Taskfile and GitHub Actions, and add Reddit release notification * ci: Trigger release validation on pull requests * ci: Migrate GoReleaser configuration to Makefiles * chore: update CI workflow permissions and rename job * refactor: remove unnecessary docker push steps from release process * feat: automate release process using Taskfile and GitHub Actions * fix: change shebang from bash to sh * chore: update setup script shebang to bash * chore: remove unnecessary setup-env step from release process * test: improve test descriptions and naming for clarity * refactor: rename workflow files for clarity * refactor: rename post-merge workflow file * refactor: Move race and coverage tests to separate workflow * refactor: simplify merge group trigger * chore: prevent accidental release overwriting of existing tags * test: rename GoReleaser Dry Run step to GoReleaser Test * fix: correct GitHub Actions workflow for version bumping * fix: Correct tag validation in CI workflow * refactor: simplify GitHub Actions workflow for version checking * test: replace version check with make command * chore: update setup-python action to v5 * test: rename workflow job and remove unnecessary steps * feat: enable workflow on merge group events --------- Signed-off-by: Prad Nukala <prad@sonr.io> Co-authored-by: Darp Alakun <i@prad.nu>
107 lines
2.6 KiB
YAML
107 lines
2.6 KiB
YAML
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
|
|
version: 2
|
|
project_name: sonr
|
|
|
|
before:
|
|
hooks:
|
|
- echo "Release date is {{ .Env.RELEASE_DATE }}"
|
|
|
|
builds:
|
|
- id: sonr
|
|
main: ./cmd/sonrd
|
|
binary: sonrd
|
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
goamd64:
|
|
- v1
|
|
flags:
|
|
- -mod=readonly
|
|
- -trimpath
|
|
ldflags:
|
|
- -X github.com/cosmos/cosmos-sdk/version.Name=sonr
|
|
- -X github.com/cosmos/cosmos-sdk/version.AppName=sonrd
|
|
- -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}}
|
|
- -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}}
|
|
- -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"
|
|
tags:
|
|
- netgo
|
|
- ledger
|
|
|
|
archives:
|
|
- id: sonr
|
|
builds: [sonr]
|
|
name_template: >-
|
|
sonr_{{ .Os }}_{{- if eq .Arch "amd64" }}x86_64
|
|
{{- else if eq .Arch "386" }}i386
|
|
{{- else }}{{ .Arch }}{{ end }}
|
|
format: tar.gz
|
|
files:
|
|
- src: README*
|
|
wrap_in_directory: true
|
|
|
|
nfpms:
|
|
- id: sonr
|
|
package_name: sonrd
|
|
file_name_template: "sonrd_{{ .Os }}_{{ .Arch }}{{ .ConventionalExtension }}"
|
|
builds: [sonr]
|
|
vendor: Sonr
|
|
homepage: "https://onsonr.dev"
|
|
maintainer: "Sonr <support@onsonr.dev>"
|
|
description: "Sonr is a decentralized, permissionless, and censorship-resistant identity network."
|
|
license: "Apache 2.0"
|
|
formats:
|
|
- rpm
|
|
- deb
|
|
- apk
|
|
dependencies:
|
|
- ipfs
|
|
contents:
|
|
- src: README*
|
|
dst: /usr/share/doc/sonrd
|
|
bindir: /usr/bin
|
|
section: net
|
|
priority: optional
|
|
# Add these lines to match build config
|
|
|
|
brews:
|
|
- name: sonr
|
|
ids: [sonr]
|
|
commit_author:
|
|
name: goreleaserbot
|
|
email: bot@goreleaser.com
|
|
directory: Formula
|
|
caveats: "Run a local sonr node and access it with the hway proxy"
|
|
homepage: "https://onson.dev"
|
|
description: "Sonr is a decentralized, permissionless, and censorship-resistant identity network."
|
|
dependencies:
|
|
- name: ipfs
|
|
repository:
|
|
owner: onsonr
|
|
name: homebrew-tap
|
|
branch: master
|
|
token: "{{ .Env.GITHUB_PERSONAL_AUTH_TOKEN }}"
|
|
|
|
release:
|
|
github:
|
|
owner: onsonr
|
|
name: sonr
|
|
name_template: "{{ .Tag }} | {{ .Env.RELEASE_DATE }}"
|
|
draft: false
|
|
replace_existing_draft: true
|
|
replace_existing_artifacts: true
|
|
extra_files:
|
|
- glob: ./README*
|
|
- glob: ./scripts/install.sh
|
|
- glob: ./scripts/test_node.sh
|
|
- glob: ./scripts/test_ics_node.sh
|
|
|
|
announce:
|
|
telegram:
|
|
enabled: true
|
|
chat_id: -1002222617755
|