-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GlobalFee, gorelease, rename cli, comment swaps, multiline delete (#11)
* showcase features to disable * add go releaser for Linux, Mac, and Windows * initial: add github.com/reecepbcups/globalfee * rm globalfee, multiline spawntag's, uncomment tags * cli!: `new` - CommetSwap, multi line fixes * generalized test_node sh script + replacements
- Loading branch information
1 parent
d9b2508
commit fc5c322
Showing
11 changed files
with
463 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: "Release" | ||
|
||
on: | ||
push: | ||
tags: | ||
- '**' | ||
|
||
# Test Locally with: | ||
# goreleaser build --skip-validate --config gorelease.yaml --snapshot | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: Clean up dist directory | ||
run: rm -rf dist | ||
|
||
- name: Build | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
version: latest | ||
args: build --skip-validate --config gorelease.yaml | ||
|
||
- name: Release | ||
uses: goreleaser/goreleaser-action@v5 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
version: latest | ||
args: release --skip-validate --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
local-ic | ||
heighliner/ | ||
dist/ | ||
|
||
my-project/ | ||
my-project/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
project_name: spawn | ||
release: | ||
github: | ||
owner: strangelove-ventures | ||
name: spawn | ||
name_template: '{{.Tag}}' | ||
builds: | ||
- id: spawn | ||
goos: | ||
- linux | ||
- darwin | ||
- windows | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
- "386" | ||
goarm: | ||
- "6" | ||
gomips: | ||
- hardfloat | ||
goamd64: | ||
- v1 | ||
targets: | ||
- linux_amd64_v1 | ||
- linux_arm64 | ||
- linux_386 | ||
- darwin_amd64_v1 | ||
- darwin_arm64 | ||
- windows_amd64_v1 | ||
- windows_arm64 | ||
- windows_386 | ||
dir: ./cmd/spawn | ||
main: . | ||
binary: spawn | ||
builder: go | ||
gobinary: go | ||
command: build | ||
ldflags: | ||
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser | ||
archives: | ||
- id: default | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' | ||
format: tar.gz | ||
files: | ||
- src: license* | ||
- src: LICENSE* | ||
- src: readme* | ||
- src: README* | ||
- src: changelog* | ||
- src: CHANGELOG* | ||
snapshot: | ||
name_template: '{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}' | ||
checksum: | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' | ||
algorithm: sha256 | ||
dist: dist | ||
env_files: | ||
github_token: ~/.config/goreleaser/github_token | ||
gitlab_token: ~/.config/goreleaser/gitlab_token | ||
gitea_token: ~/.config/goreleaser/gitea_token | ||
source: | ||
name_template: '{{ .ProjectName }}-{{ .Version }}' | ||
format: tar.gz | ||
gomod: | ||
gobinary: go | ||
announce: | ||
twitter: | ||
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' | ||
mastodon: | ||
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' | ||
server: "" | ||
reddit: | ||
title_template: '{{ .ProjectName }} {{ .Tag }} is out!' | ||
url_template: '{{ .ReleaseURL }}' | ||
slack: | ||
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' | ||
username: GoReleaser | ||
discord: | ||
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' | ||
author: GoReleaser | ||
color: "3888754" | ||
icon_url: https://goreleaser.com/static/avatar.png | ||
teams: | ||
title_template: '{{ .ProjectName }} {{ .Tag }} is out!' | ||
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' | ||
color: '#2D313E' | ||
icon_url: https://goreleaser.com/static/avatar.png | ||
smtp: | ||
subject_template: '{{ .ProjectName }} {{ .Tag }} is out!' | ||
body_template: 'You can view details from: {{ .ReleaseURL }}' | ||
mattermost: | ||
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' | ||
title_template: '{{ .ProjectName }} {{ .Tag }} is out!' | ||
username: GoReleaser | ||
linkedin: | ||
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' | ||
telegram: | ||
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' | ||
webhook: | ||
message_template: '{ "message": "{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}"}' | ||
content_type: application/json; charset=utf-8 | ||
opencollective: | ||
title_template: '{{ .Tag }}' | ||
message_template: '{{ .ProjectName }} {{ .Tag }} is out!<br/>Check it out at <a href="{{ .ReleaseURL }}">{{ .ReleaseURL }}</a>' | ||
git: | ||
tag_sort: -version:refname | ||
github_urls: | ||
download: https://github.com | ||
gitlab_urls: | ||
download: https://gitlab.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# Spawn a new instance | ||
make install && spawn new-chain my-project --debug --bech32=cosmos --bin=appd --disabled=tokenfactory | ||
make install && spawn new my-project --debug --bech32=cosmos --bin=appd --disable=tokenfactory |
Oops, something went wrong.