Use either branch or tag as version
This commit is contained in:
parent
dd57beed52
commit
cc06a8fd50
@ -23,7 +23,9 @@ steps:
|
|||||||
- unzip vikunja-frontend-master.zip -d frontend
|
- unzip vikunja-frontend-master.zip -d frontend
|
||||||
- sed -i 's/\\/api\\/v1//g' frontend/index.html
|
- sed -i 's/\\/api\\/v1//g' frontend/index.html
|
||||||
# Make sure that the -master suffix is added to release files
|
# Make sure that the -master suffix is added to release files
|
||||||
- sed -i 's/$${version}/master/g' package.json
|
- export VERSION=${DRONE_TAG##v,DRONE_BRANCH}
|
||||||
|
- echo $VERSION
|
||||||
|
- sed -i "s/$${version}/$$VERSION/g" package.json
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn dist --linux --windows
|
- yarn dist --linux --windows
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user