Skip to content

Commit be1dac2

Browse files
committed
work with CI
Signed-off-by: Lev Nachmanson <[email protected]>
1 parent 5777a20 commit be1dac2

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

.github/workflows/agl.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
on:
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
66
name: Create Release
77

88
jobs:

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ A release containing the binaries of agl.exe
112112
can be created automatically by a github action of
113113
".github\workflows\agl.yaml'.
114114
To 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".

createRelease.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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)

0 commit comments

Comments
 (0)