Skip to content

Commit

Permalink
add task check-release
Browse files Browse the repository at this point in the history
  • Loading branch information
janiltonmaciel committed Oct 6, 2020
1 parent a49ecee commit f5e3161
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project_name: statiks

builds:
-
main: ./main.go
main: ./cmd/statiks.go
binary: statiks
env:
- CGO_ENABLED=0
Expand Down Expand Up @@ -45,9 +45,8 @@ dockers:
- go.mod
- go.sum
- README.md
- main.go
- pkg
- cmd
- http

changelog:
sort: asc
Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ git-tag:
sed -i.bak "s/statiks_[^_]*/statiks_$$TAG/g" README.md && \
rm README.md.bak 2>/dev/null; \
git commit README.md -m "Update README.md with release $$TAG"; \
git tag -s v$$TAG -m "v$$TAG"; \
git push origin v$$TAG; \
git tag -s $$TAG -m "$$TAG"; \
git push origin $$TAG; \
git push origin master; \


Expand Down Expand Up @@ -96,6 +96,11 @@ push-release:
export GITHUB_TOKEN=$(GITHUB_TOKEN); \
goreleaser release --rm-dist --skip-validate

## Check release
check-release:
export GITHUB_TOKEN=$(GITHUB_TOKEN); \
goreleaser release --skip-publish --rm-dist --skip-validate

## Prints this help
help:
printf "${COLOR_YELLOW}${PROJECT}\n------\n${COLOR_RESET}"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ statiks --cors /home
```

* start server at http://192.168.1.100:9080 serving "/tmp" with gzip compression

```bash
statiks --host 192.168.1.100 --compression /tmp
```
Expand Down

0 comments on commit f5e3161

Please sign in to comment.