# to build official release tarballs, handle tagging and publish.
+# example:
+# make -f build-aux/release.mk all version=0.9 release=yes publish
+
gpgsignkey = 6CE95CA7
project = kronosnet
ifeq (,$(release))
@echo Building test release $(version), no publishing!
else
- @echo CHANGEME git push --follow-tags origin
- @echo : TODO: Either a scp-friendly substitute for fedorahosted.org
- @echo : needs to be found, no-value-added archives by git hosting fallback
- @echo : can be used, or up to consideration whether to restore a tradition
- @echo : of customized possibly signed archives on GH, automation exists:
- @echo : https://developer.github.com/v3/repos/releases/#upload-a-release-asset
- @echo : http://github3py.readthedocs.io/en/latest/repos.html#github3.repos.release.Release.upload_asset
- @echo : NOTE: precaution required so as NOT TO LEAK the API token!
+ @echo : pushing tags
+ @git push --follow-tags origin
+ @echo : publishing files
+ @scp $(deliverables) $(project)-$(version).sha256.asc www.kronosnet.org:kronosnet/releases/.
endif