@@ -8,10 +8,16 @@ export KSCRIPT_HOME="/Users/brandl/projects/kotlin/kscript";
88export PATH=${KSCRIPT_HOME} :${PATH}
99export PATH=~ /go/bin/:$PATH
1010
11+
1112kscript_version=$( grep ' ^KSCRIPT_VERSION' ${KSCRIPT_HOME} /kscript | cut -f2 -d' =' )
1213echo " new version is $kscript_version "
1314# # see https://github.com/aktau/github-release
1415
16+
17+ # #######################################################################
18+ # ## Build the binary release
19+
20+
1521# # create and upload deployment file for sdkman
1622KSCRIPT_ARCHIVE=~ /Dropbox/archive/kscript_versions/
1723
@@ -23,13 +29,15 @@ zip -r ${KSCRIPT_ARCHIVE}/kscript-${kscript_version}.zip kscript-${kscript_vers
2329open ${KSCRIPT_ARCHIVE}
2430
2531
32+ # #######################################################################
33+ # ## Do the github release
34+
2635# # create tag on github
2736# github-release --help
2837
2938export GITHUB_TOKEN=${GH_TOKEN}
3039# echo $GITHUB_TOKEN
3140
32-
3341# make your tag and upload
3442cd ${KSCRIPT_HOME}
3543
@@ -41,29 +49,28 @@ git push --tags
4149github-release info -u holgerbrandl -r kscript
4250
4351# create a formal release
44- github-release release \\
45- --user holgerbrandl \\
46- --repo kscript \\
47- --tag " v${kscript_version} " \\
48- --name " v${kscript_version} " \\
49- --description " NEWS.md](https://github.com/holgerbrandl/kscript/blob/master/NEWS.md)"
52+ github-release release \
53+ --user holgerbrandl \
54+ --repo kscript \
55+ --tag " v${kscript_version} " \
56+ --name " v${kscript_version} " \
57+ --description " See [ NEWS.md](https://github.com/holgerbrandl/kscript/blob/master/NEWS.md) for changes. "
5058# \\
5159# --pre-release
5260
5361
5462# # upload sdk-man binary set
55- github-release upload \\
56- --user aktau \\
57- --repo gofinance \\
58- --tag v0.1.0 \\
59- --name " gofinance-osx-amd64" \\
60- --file bin/darwin/amd64/gofinance
61- ```
63+ github-release upload \
64+ --user holgerbrandl \
65+ --repo kscript \
66+ --tag " v${kscript_version} " \
67+ --name " kscript-${kscript_version} -bin.zip" \
68+ --file ${KSCRIPT_ARCHIVE} /kscript-${kscript_version} .zip
6269
6370
64- 4 . Update release branch
71+ # #######################################################################
72+ # ## Update release branch
6573
66- ``` bash
6774# http://stackoverflow.com/questions/13969050/how-to-create-a-new-empty-branch-for-a-new-project
6875git clone
[email protected] :holgerbrandl/kscript.git kscript_releases
6976cd kscript_releases
@@ -72,20 +79,18 @@ cd kscript_releases
7279# git rm --cached -r .
7380
7481git checkout releases
75- cp ~ /projects/kotlin/kscript/resdeps.kts ~ /projects/kotlin/kscript/kscript .
82+ # cp ~/projects/kotlin/kscript/resdeps.kts ~/projects/kotlin/kscript/kscript .
83+ cp ~ /projects/kotlin/kscript/kscript .
7684git add -A
7785git status
78- git commit -m " v1.4 release"
86+ git commit -m " v ${kscript_version} release"
7987
8088git push origin releases
81- ```
8289
83- 5 . create new version on jcenter
8490
85- * Upload artifacts from ~ /.m2/repository/de/mpicbg/scicomp/kutils to:
86- > https://bintray.com/holgerbrandl/mpicbg-scicomp/kutils
91+ # #######################################################################
92+ # ## release on sdkman
8793
88- 1 . Check for release status on
89- https://jcenter.bintray.com/de/mpicbg/scicomp/
94+ # TBD
9095
91- 7 . Bump versions for new release cycle
96+ ```
0 commit comments