File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 steps :
88 - uses : actions/checkout@v2
99
10+ - name : Set version from tag
11+ if : startsWith(github.ref, 'refs/tags')
12+ run : |
13+ # from refs/tags/1.2.3 get 1.2.3
14+ VERSION=$(echo $GITHUB_REF | sed 's#.*/##')
15+ PLACEHOLDER='version="develop"'
16+ VERSION_FILE='setup.py'
17+ grep "$PLACEHOLDER" "$VERSION_FILE"
18+ sed -i "s/$PLACEHOLDER/version=\"${VERSION}\"/" "$VERSION_FILE"
19+ shell : bash
20+
1021 - name : install dependencies & build
1122 run : |
1223 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