diff --git a/Makefile b/Makefile
index 04b1221..70804f9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
app_name=files_frommail
-project_dir=$(CURDIR)/../$(app_name)
+project_dir=$(CURDIR)
build_dir=$(CURDIR)/build/artifacts
appstore_dir=$(build_dir)/appstore
source_dir=$(build_dir)/source
@@ -8,11 +8,29 @@ sign_dir=$(build_dir)/sign
package_name=$(app_name)
cert_dir=$(HOME)/.nextcloud/certificates
codecov_token_dir=$(HOME)/.nextcloud/codecov_token
-version+=0.1.1
+github_account=nextcloud
+branch=master
+version+=0.2.0
all: appstore
-release: appstore create-tag
+release: appstore github-release github-upload
+
+github-release:
+ github-release release \
+ --user $(github_account) \
+ --repo $(app_name) \
+ --target $(branch) \
+ --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
create-tag:
git tag -s -a v$(version) -m "Tagging the $(version) release."
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 5f2bdc0..1cf3329 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -11,7 +11,7 @@
]]>
- 0.1.1
+ 0.2.0
agpl
Maxence Lange
Files_FromMail
@@ -28,7 +28,7 @@
https://raw.githubusercontent.com/nextcloud/files_frommail/master/screenshots/v0.1.0.png
-
+