This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
desktop/.drone.yml

49 lines
1.2 KiB
YAML
Raw Normal View History

2020-10-11 10:19:26 +00:00
kind: pipeline
name: release-latest
trigger:
branch:
- master
event:
- push
steps:
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
- name: build
image: electronuserland/builder:wine
pull: true
depends_on: [ fetch-tags ]
2020-10-11 10:19:26 +00:00
commands:
# TODO: Move to a yarn script
- wget https://dl.vikunja.io/frontend/vikunja-frontend-master.zip
- unzip vikunja-frontend-master.zip -d frontend
2020-10-17 18:32:17 +00:00
- sed -i 's/\\/api\\/v1//g' frontend/index.html
# Make sure that the -master suffix is added to release files
2020-10-17 19:02:43 +00:00
- export VERSION=${DRONE_TAG##v}
2020-10-17 19:03:23 +00:00
- if [ -z "$$VERSION" ]; then export VERSION=${DRONE_BRANCH}; fi
2020-10-17 19:08:45 +00:00
- sed -i "s/$${version}/$$VERSION/g" package.json
- yarn install
2020-10-11 10:19:26 +00:00
- yarn dist --linux --windows
- name: release
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/master/
2020-10-11 10:19:59 +00:00
depends_on: [ build ]