From decf713ad0adff17064b8003828a16c13847b98d Mon Sep 17 00:00:00 2001 From: Bernhard Schuster Date: Wed, 23 Aug 2017 20:14:50 +0200 Subject: [PATCH] chore/ci: gh release pipeline --- .concourse.yml | 6 +++++- wscript | 9 +++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.concourse.yml b/.concourse.yml index 787835e3..d3e370c1 100644 --- a/.concourse.yml +++ b/.concourse.yml @@ -449,15 +449,19 @@ jobs: args: - -exc - | - git tag -l --points-at HEAD > ../release-info/TAG + git log -n 1 --format="%h" HEAD > ../release-info/COMMITISH + ./waf version + cat VERSION > ../release-info/TAG echo "oregano" > ../release-info/NAME echo "Yet another release" > ../release-info/BODY dir: git-tag-resource - put: gh-release params: + tag_prefix: v name: release-info/NAME tag: release-info/TAG body: release-info/BODY + commitish: release-info/COMMITISH globs: - source-release/oregano-*.tar.xz - rpm-release/oregano-*.rpm diff --git a/wscript b/wscript index 396f2f8b..f0f0830a 100644 --- a/wscript +++ b/wscript @@ -244,3 +244,12 @@ class builddeps(Context): """Install build dependencies""" cmd = 'builddeps' fun = 'builddeps_fun' + +def version_fun(ctx): + with open("VERSION", "w") as f: + f.write(VERSION + "\n") + +class version(Context): + """Oregano Version to file VERSION""" + cmd = 'version' + fun = 'version_fun'