Enable mac builds
This commit is contained in:
parent
d238f751a9
commit
210bf77f07
74
.drone.yml
74
.drone.yml
@ -112,40 +112,40 @@ steps:
|
||||
- tag
|
||||
depends_on: [ build ]
|
||||
|
||||
# Mac building disabled until the runner works again
|
||||
#---
|
||||
#kind: pipeline
|
||||
#type: exec
|
||||
#name: release-macos
|
||||
#
|
||||
#trigger:
|
||||
# ref:
|
||||
# - refs/heads/main
|
||||
# - "refs/tags/**"
|
||||
#
|
||||
#platform:
|
||||
# os: darwin
|
||||
# arch: amd64
|
||||
#
|
||||
#steps:
|
||||
# - name: build
|
||||
# environment:
|
||||
# ACCESS_KEY:
|
||||
# from_secret: aws_access_key_id
|
||||
# SECRET_KEY:
|
||||
# from_secret: aws_secret_access_key
|
||||
# commands:
|
||||
# - git fetch --tags
|
||||
# - export VERSION=${DRONE_TAG##v}
|
||||
# - if [ -z "$$VERSION" ]; then export VERSION=unstable; fi
|
||||
# # TODO: Move to a yarn script
|
||||
# - wget https://dl.vikunja.io/frontend/vikunja-frontend-$$VERSION.zip
|
||||
# - unzip vikunja-frontend-$$VERSION.zip -d frontend
|
||||
# - sed -i 's/\\/api\\/v1//g' frontend/index.html
|
||||
# # Make sure that the -unstable suffix is added to release files
|
||||
# - sed -i "s/\$${version}/$$VERSION/g" package.json
|
||||
# - yarn install
|
||||
# - yarn dist --mac
|
||||
# - brew install minio/stable/mc
|
||||
# - mc config host add scw-fr-par https://s3.fr-par.scw.cloud $ACCESS_KEY $SECRET_KEY --api S3v4
|
||||
# - mc cp ./dist/* scw-fr-par/vikunja-releases/desktop/$VERSION/
|
||||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: release-macos
|
||||
|
||||
trigger:
|
||||
ref:
|
||||
- refs/heads/main
|
||||
- "refs/tags/**"
|
||||
|
||||
platform:
|
||||
os: darwin
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
environment:
|
||||
ACCESS_KEY:
|
||||
from_secret: aws_access_key_id
|
||||
SECRET_KEY:
|
||||
from_secret: aws_secret_access_key
|
||||
commands:
|
||||
- git fetch --tags
|
||||
- export VERSION=${DRONE_TAG##v}
|
||||
- if [ -z "$$VERSION" ]; then export VERSION=unstable; fi
|
||||
# TODO: Move to a yarn script
|
||||
- wget https://dl.vikunja.io/frontend/vikunja-frontend-$$VERSION.zip
|
||||
- unzip vikunja-frontend-$$VERSION.zip -d frontend
|
||||
- sed -i 's/\\/api\\/v1//g' frontend/index.html
|
||||
# Make sure that the -unstable suffix is added to release files
|
||||
- sed -i "s/\$${version}/$$VERSION/g" package.json
|
||||
- yarn install
|
||||
- yarn dist --mac
|
||||
- brew install minio/stable/mc
|
||||
- mc config host add scw-fr-par https://s3.fr-par.scw.cloud $ACCESS_KEY $SECRET_KEY --api S3v4
|
||||
- mc cp ./dist/* scw-fr-par/vikunja-releases/desktop/$VERSION/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user