File tree 1 file changed +52
-0
lines changed
1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release version
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ newversion :
7
+ description : ' New version'
8
+ required : true
9
+
10
+ jobs :
11
+ release-version :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Repository checkout
15
+ uses : actions/checkout@v3
16
+
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v4
19
+ with :
20
+ python-version : " 3.6"
21
+
22
+ - name : Install dependencies
23
+ run : |
24
+ pip install --upgrade pip tox bump2version
25
+
26
+ - name : Test latest version
27
+ run : |
28
+ tox -e py3
29
+
30
+ - uses : actions/checkout@v3
31
+ with :
32
+ fetch-depth : 0
33
+ - name : ' Get Previous version tag'
34
+ id : previousversion
35
+ uses : " WyriHaximus/github-action-get-previous-tag@v1"
36
+
37
+ - name : Bump setup.py version
38
+ run : |
39
+ bump2version --current-version ${previousversion} --new-version ${newversion} setup.py
40
+
41
+ - name : Tag latest version
42
+ uses : EndBug/latest-tag@latest
43
+ with :
44
+ tag-name : ${newversion}
45
+
46
+ - name : Update docs
47
+ run : /
48
+ make docs-to-github
49
+
50
+ - name : Upload to pypi
51
+ run : /
52
+ make upload
You can’t perform that action at this time.
0 commit comments