]> git.proxmox.com Git - mirror_kronosnet.git/commitdiff
[build] enable release script / publishing bits
authorFabio M. Di Nitto <fdinitto@redhat.com>
Sun, 30 Jul 2017 09:06:24 +0000 (11:06 +0200)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Sun, 30 Jul 2017 09:06:24 +0000 (11:06 +0200)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
build-aux/release.mk

index 29c211e789c83d0f4963a72210b3b48a75ba11e3..372046f56a09a83cace25f9de7e0bb02a2467bc6 100644 (file)
@@ -1,5 +1,8 @@
 # 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
@@ -87,14 +90,10 @@ publish:
 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