Skip to content

Commit

Permalink
Merge pull request #72 from catatsuy/feature_mod_version_readme
Browse files Browse the repository at this point in the history
mod README and Makefile
  • Loading branch information
catatsuy authored Dec 19, 2020
2 parents 5755fb8 + be476b2 commit 02f3009
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ go.mod go.sum:
go mod tidy

bin/notify_slack: cmd/notify_slack/main.go slack/*.go throttle/*.go config/*.go cli/*.go go.mod go.sum
go build -o bin/notify_slack cmd/notify_slack/main.go
go build -ldflags "-X github.com/catatsuy/notify_slack/cli.Version=`git rev-list HEAD -n1`" -o bin/notify_slack cmd/notify_slack/main.go

bin/output: cmd/output/main.go
go build -o bin/output cmd/output/main.go
Expand Down
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you want to develop it, you can use the `make`. It requires Go 1.15 or higher
make
```

If you compile it by yourself, the output of `notify_slack -version` will not be appropriate. The source code doesn't contain version information.
If you use `make`, the output of `notify_slack -version` is git commit ID.

## usage

Expand Down Expand Up @@ -157,13 +157,3 @@ NOTIFY_SLACK_ICON_EMOJI
```

It will be useful if you want to use it on a container. If you use it, you don't need a configuration file anymore.


## Release

When you execute the following command and give a tag, it will be released via GitHub Actions.

``` sh
git tag v0.3.0
git push origin v0.3.0
```

0 comments on commit 02f3009

Please sign in to comment.