Make sure to get the right frontend version
This commit is contained in:
parent
4b9592cfa1
commit
5b445221ec
33
.drone.yml
33
.drone.yml
@ -17,18 +17,18 @@ steps:
|
|||||||
pull: true
|
pull: true
|
||||||
depends_on: [ fetch-tags ]
|
depends_on: [ fetch-tags ]
|
||||||
commands:
|
commands:
|
||||||
|
- export VERSION=${DRONE_TAG##v}
|
||||||
|
- if [ -z "$$VERSION" ]; then export VERSION=${DRONE_BRANCH}; fi
|
||||||
# TODO: Move to a yarn script
|
# TODO: Move to a yarn script
|
||||||
- wget https://dl.vikunja.io/frontend/vikunja-frontend-master.zip
|
- wget https://dl.vikunja.io/frontend/vikunja-frontend-$$VERSION.zip
|
||||||
- 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
|
||||||
- export VERSION=${DRONE_TAG##v}
|
|
||||||
- if [ -z "$$VERSION" ]; then export VERSION=${DRONE_BRANCH}; fi
|
|
||||||
- sed -i "s/\$${version}/$$VERSION/g" package.json
|
- sed -i "s/\$${version}/$$VERSION/g" package.json
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn dist --linux --windows
|
- yarn dist --linux --windows
|
||||||
|
|
||||||
- name: release
|
- name: release-latest
|
||||||
image: plugins/s3:1
|
image: plugins/s3:1
|
||||||
pull: true
|
pull: true
|
||||||
settings:
|
settings:
|
||||||
@ -43,5 +43,30 @@ steps:
|
|||||||
strip_prefix: dist/
|
strip_prefix: dist/
|
||||||
source: dist/*
|
source: dist/*
|
||||||
target: /desktop/master/
|
target: /desktop/master/
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
depends_on: [ build ]
|
||||||
|
|
||||||
|
- name: release-version
|
||||||
|
image: plugins/s3:1
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
bucket: vikunja-releases
|
||||||
|
access_key:
|
||||||
|
from_secret: aws_access_key_id
|
||||||
|
secret_key:
|
||||||
|
from_secret: aws_secret_access_key
|
||||||
|
endpoint: https://s3.fr-par.scw.cloud
|
||||||
|
region: fr-par
|
||||||
|
path_style: true
|
||||||
|
strip_prefix: dist/
|
||||||
|
source: dist/*
|
||||||
|
target: /desktop/${DRONE_TAG##v}/
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
depends_on: [ build ]
|
depends_on: [ build ]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user