Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
linyows committed Mar 6, 2017
1 parent b835075 commit e2a2b83
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions content/posts/2017/what_i_did_in_my_c_project.md
Expand Up @@ -111,17 +111,13 @@ Makefile
http://postd.cc/auto-documented-makefile/
```make
release: pkg ## Upload archives to Github Release on Mac
@echo "$(INFO_COLOR)==> $(RESET)$(BOLD)Releasing$(RESET)"
go get github.com/tcnksm/ghr
rm -rf builds/.keep && ghr v$(VERSION) builds && git checkout builds/.keep
pkg: ## Create some distribution packages
rm -rf builds && mkdir builds
docker-compose up
dist: ## Upload archives to Github Release on Mac
@test -z $(GITHUB_TOKEN) || $(MAKE) release
dist: ## Upload archives on Mac
@test -z $(GITHUB_TOKEN) || $(MAKE) github_release
@test -z $(PACKAGECLOUD_TOKEN) || $(MAKE) packagecloud_release
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "$(INFO_COLOR)%-30s$(RESET) %s\n", $$1, $$2}'
Expand Down Expand Up @@ -150,11 +146,9 @@ deb:
command: make deb
```

また、作成済みパッケージをGithub Rereasesにアップロードするのはおなじみ `ghr` を使用します。
また、作成済みパッケージをGithub Rereasesにアップロードするのはおなじみ `ghr` を使い、
PackageCloud へのアップロードは `github.com/mlafeldt/pkgcloud` を使用しました。
そうすることで、各ディストリビューションパッケージの作成公開を `make dist` というコマンドだけで完結してしまいます。
新しいバージョンを公開することがものすごく手軽になりました。
ただ、各パッケージの配布は packagecloud を使っていて、パッケージのアップロードにAPIが提供されているようですが、
簡単に使えそうなクライアントが見つからなかったので今回はそこまではやっていません。

Integration Test
----------------
Expand Down

0 comments on commit e2a2b83

Please sign in to comment.