File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- on : [push, pull_request]
1+ on :
2+ push :
3+ tags :
4+ - ' *.*.*'
25
36jobs :
47 publish :
710 steps :
811 - uses : actions/checkout@v2
912
13+ - name : Set version from tag
14+ if : startsWith(github.ref, 'refs/tags')
15+ run : |
16+ # from refs/tags/1.2.3 get 1.2.3
17+ VERSION=$( basename $GITHUB_REF )
18+ PLACEHOLDER='version="develop"'
19+ VERSION_FILE='setup.py'
20+ # fail out if placeholder not found
21+ grep "$PLACEHOLDER" "$VERSION_FILE"
22+ sed -i "s/$PLACEHOLDER/version=\"${VERSION}\"/" "$VERSION_FILE"
23+ shell : bash
24+
1025 - name : install dependencies & build
1126 run : |
1227 pip3 install setuptools wheel
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ It will optionally verify that the POST request originated from a particular IP
99### Installation
1010
1111``` bash
12- pip install .
12+ pip install gwh
1313```
1414
1515### Repository Configuration
Original file line number Diff line number Diff line change 33
44setup (
55 name = "gwh" ,
6+ version = "develop" ,
67 author = 'Andy Hebrank' ,
78 author_email = 'ahebrank@gmail.com' ,
89 packages = ['gwh' ],
You can’t perform that action at this time.
0 commit comments