File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 - name : Get version number
1919 id : v
2020 run : >-
21- echo "::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v}"
22-
23- - name : Set version number
24- if : startsWith(github.ref, 'refs/tags/v')
25- run : >-
26- sed -i "s/= dev/= ${{ steps.v.outputs.VERSION }}/" setup.cfg
21+ echo "${GITHUB_REF/refs\/tags\/v}" > VERSION
2722
2823 - name : Install pypa/build
2924 run : >-
Original file line number Diff line number Diff line change 1+ dev
Original file line number Diff line number Diff line change 33with open ("README.md" , "r" , encoding = "utf-8" ) as fh :
44 long_description = fh .read ()
55
6+ with open ("VERSION" , "r" , encoding = "utf-8" ) as fh :
7+ version = fh .read ().strip ()
8+
69setuptools .setup (
710 name = "qfieldcloud-sdk" ,
8- version = "dev" ,
11+ version = version ,
912 author = "Ivan Ivanov" ,
1013 author_email = "ivan@opengis.ch" ,
1114 description = "The official QFieldCloud SDK and CLI." ,
You can’t perform that action at this time.
0 commit comments