Skip to content

Commit

Permalink
chore/ci: gh release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Aug 23, 2017
1 parent e718fdb commit decf713
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .concourse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit decf713

Please sign in to comment.