From b1e7f58897db3153f9d99ff9c46920ad6155d37f Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Sun, 9 Sep 2018 20:49:44 +0200 Subject: [PATCH] 0.15.0 Signed-off-by: Maxence Lange --- Makefile | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a8dae5f5f..43b1afeeb 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,32 @@ app_name=circles -project_dir=$(CURDIR)/../$(app_name) build_dir=$(CURDIR)/build/artifacts appstore_dir=$(build_dir)/appstore source_dir=$(build_dir)/source sign_dir=$(build_dir)/sign package_name=$(app_name) cert_dir=$(HOME)/.nextcloud/certificates +github_account=nextcloud version+=0.15.0 all: appstore -release: appstore create-tag +release: appstore github-release github-upload -create-tag: - git tag -s -a v$(version) -m "Tagging the $(version) release." - git push origin v$(version) +github-release: + github-release release \ + --user $(github_account) \ + --repo $(app_name) \ + --tag v$(version) \ + --name "$(app_name) v$(version)" + +github-upload: + github-release upload \ + --user $(github_account) \ + --repo $(app_name) \ + --tag v$(version) \ + --name "$(app_name)-$(version).tar.gz" \ + --file $(build_dir)/$(app_name)-$(version).tar.gz clean: rm -rf $(build_dir) @@ -40,7 +51,7 @@ appstore: clean --exclude=/.scrutinizer.yml \ --exclude=/.travis.yml \ --exclude=/Makefile \ - $(project_dir)/ $(sign_dir)/$(app_name) + ./ $(sign_dir)/$(app_name) tar -czf $(build_dir)/$(app_name)-$(version).tar.gz \ -C $(sign_dir) $(app_name) @if [ -f $(cert_dir)/$(app_name).key ]; then \