File tree Expand file tree Collapse file tree 3 files changed +28
-5
lines changed
Expand file tree Collapse file tree 3 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 11on :
22 push :
33 tags :
4- - release * # You will need to provide a tag of the form 'relase_ ...' with your push command:
5- # For example git tag -a release_with_a_bug_fix -m "bug fix" && git push origin release_with_a_bug_fix
4+ - v * # You will need to provide a tag of the form 'v* ...' with your push command:
5+ # For example git tag -a v11 -m "bug fix" && git push origin v11
66name : Create Release
77
88jobs :
Original file line number Diff line number Diff line change @@ -112,6 +112,8 @@ A release containing the binaries of agl.exe
112112can be created automatically by a github action of
113113".github\workflows\agl.yaml'.
114114To invoke the action do the following.
115- Create a new tag in the form "release* ". For example, "git tag -a
116- release_11 -m "some comment here"". Then execute git push with this
117- tag: "git push origin release_11". These should trigger the release creation.
115+ Create a new tag in the form "v* ". For example, "git tag -a
116+ v_11 -m "some comment here"". Then execute git push with this
117+ tag: "git push origin v_11". These should trigger the release
118+ creation. Alternatively, you can use python script "createRelease.py",
119+ as following "python createRelease.py 1.1.1".
Original file line number Diff line number Diff line change 1+ from curses .panel import version
2+ import os
3+ import os
4+ import sys
5+ print ("Creating release" )
6+ if len (sys .argv ) == 1 :
7+ print ("Error: please provide the release number" )
8+ print ("Usage: python createRelease 1.1.1 \" provide an optional comment\" " )
9+ exit (1 )
10+ comment = "default comment"
11+
12+ if len (sys .argv ) == 3 :
13+ comment = sys .argv [2 ]
14+
15+ version_tag = 'v' + sys .argv [1 ]
16+
17+ command = "git tag -a " + version_tag + " -m " + comment
18+
19+ command += " && git push origin " + version_tag
20+ print (command )
21+ #os.system(command)
You can’t perform that action at this time.
0 commit comments