Skip to content

Commit bfda6f2

Browse files
committedAug 21, 2022
build: tweak setup, make taon go install'able
1 parent 8e8372f commit bfda6f2

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed
 

‎.github/workflows/test.yaml ‎.github/workflows/ci.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
name: test
1+
name: CI
22

33
on:
44
push:
55
branches: ['main']
66
pull_request:
7-
branches: ['main']
87

98
jobs:
109
test:

‎.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: release
1+
name: Release
22

33
on:
44
push:
55
tags:
6-
- '*'
6+
- 'v*'
77

88
permissions:
99
contents: write

‎.goreleaser.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ builds:
99
- linux
1010
- windows
1111
- darwin
12-
main: ./cmd/taon
1312
archives:
1413
- replacements:
1514
darwin: Darwin

‎Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
.DEFAULT_GOAL := test
22
NAME := taon
3-
SRC := $(wildcard ./cmd/$(NAME)/*.go ./pkg/$(NAME)/*.go)
3+
SRC := $(wildcard *.go ./pkg/$(NAME)/*.go)
44

55
.PHONY: build
66
build: $(NAME)
77

88
$(NAME): $(SRC)
9-
go build -o $(NAME) ./cmd/$(NAME)/...
9+
go build -o $(NAME) main.go
1010

1111
.PHONY: test
1212
test:

‎README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# taon
22
[![CI Status](https://github.com/eiri/taon/actions/workflows/test.yaml/badge.svg)](https://github.com/eiri/taon/actions/workflows/test.yaml)
33
[![Go Report Card](https://goreportcard.com/badge/github.com/eiri/taon)](https://goreportcard.com/report/github.com/eiri/taon)
4+
[![release](https://img.shields.io/github/release/eiri/taon/all.svg)](https://github.com/eiri/taon/releases)
45

5-
Transform JSON into ASCII table.
6+
Transform JSON into ASCII table
67

78
## Installation
89

@@ -16,6 +17,10 @@ Tap `eiri/tap` with `brew tap eiri/tap` and then run `brew install taon` or just
1617

1718
Since `taon` is just a single binary [download the latest release](https://github.com/eiri/taon/releases) and place it in your `$PATH`.
1819

20+
### Build from source
21+
22+
`go install github.com/eiri/taon@latest`
23+
1924
## Usage
2025

2126
### Reading

‎cmd/taon/main.go ‎main.go

File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.