mirror of
https://github.com/onsonr/hway.git
synced 2025-03-10 04:57:08 +00:00
100 lines
2.3 KiB
YAML
100 lines
2.3 KiB
YAML
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
|
|
version: 2
|
|
project_name: sonr
|
|
|
|
builds:
|
|
- id: hway
|
|
main: ./cmd
|
|
binary: hway
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
mod_timestamp: "{{ .CommitTimestamp }}"
|
|
flags:
|
|
- -mod=readonly
|
|
- -trimpath
|
|
goamd64:
|
|
- v1
|
|
ldflags:
|
|
- -X main.version={{.Version}}
|
|
- -X main.commit={{.Commit}}
|
|
- -X main.date={{.Date}}
|
|
archives:
|
|
- id: hway
|
|
builds: [hway]
|
|
name_template: >-
|
|
hway_{{ .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: hway
|
|
package_name: hway
|
|
file_name_template: "hway_{{ .Os }}_{{ .Arch }}{{ .ConventionalExtension }}"
|
|
builds: [hway]
|
|
vendor: Sonr
|
|
homepage: "https://onsonr.dev"
|
|
maintainer: "Sonr <support@onsonr.dev>"
|
|
description: "Sonr Highway is a decentralized, permissionless, and censorship-resistant identity network proxy."
|
|
license: "Apache 2.0"
|
|
formats:
|
|
- rpm
|
|
- deb
|
|
- apk
|
|
dependencies:
|
|
- ipfs
|
|
contents:
|
|
- src: README*
|
|
dst: /usr/share/doc/hway
|
|
bindir: /usr/bin
|
|
section: net
|
|
priority: optional
|
|
# Add these lines to match build config
|
|
brews:
|
|
- name: hway
|
|
ids: [hway]
|
|
commit_author:
|
|
name: goreleaserbot
|
|
email: bot@goreleaser.com
|
|
directory: Formula
|
|
caveats: "Run a local hway node and access it with the hway proxy"
|
|
homepage: "https://onsonr.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*
|
|
|
|
dockers:
|
|
- image_templates:
|
|
- onsonr/hway:{{ .Tag }}
|
|
- onsonr/hway:latest
|
|
- ghcr.io/onsonr/hway:{{ .Tag }}
|
|
- ghcr.io/onsonr/hway:latest
|
|
|
|
announce:
|
|
telegram:
|
|
enabled: true
|
|
chat_id: -1002222617755
|