Enable mac builds
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2021-06-17 08:52:09 +02:00
parent d238f751a9
commit 210bf77f07
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 37 additions and 37 deletions

View File

@ -112,40 +112,40 @@ steps:
- tag - tag
depends_on: [ build ] depends_on: [ build ]
# Mac building disabled until the runner works again ---
#--- kind: pipeline
#kind: pipeline type: exec
#type: exec name: release-macos
#name: release-macos
# trigger:
#trigger: ref:
# ref: - refs/heads/main
# - refs/heads/main - "refs/tags/**"
# - "refs/tags/**"
# platform:
#platform: os: darwin
# os: darwin arch: amd64
# arch: amd64
# steps:
#steps: - name: build
# - name: build environment:
# environment: ACCESS_KEY:
# ACCESS_KEY: from_secret: aws_access_key_id
# from_secret: aws_access_key_id SECRET_KEY:
# SECRET_KEY: from_secret: aws_secret_access_key
# from_secret: aws_secret_access_key commands:
# commands: - git fetch --tags
# - git fetch --tags - export VERSION=${DRONE_TAG##v}
# - export VERSION=${DRONE_TAG##v} - if [ -z "$$VERSION" ]; then export VERSION=unstable; fi
# - if [ -z "$$VERSION" ]; then export VERSION=unstable; fi # TODO: Move to a yarn script
# # TODO: Move to a yarn script - wget https://dl.vikunja.io/frontend/vikunja-frontend-$$VERSION.zip
# - wget https://dl.vikunja.io/frontend/vikunja-frontend-$$VERSION.zip - unzip vikunja-frontend-$$VERSION.zip -d frontend
# - unzip vikunja-frontend-$$VERSION.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 -unstable suffix is added to release files
# # Make sure that the -unstable suffix is added to release files - sed -i "s/\$${version}/$$VERSION/g" package.json
# - sed -i "s/\$${version}/$$VERSION/g" package.json - yarn install
# - yarn install - yarn dist --mac
# - yarn dist --mac - brew install minio/stable/mc
# - 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 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/
# - mc cp ./dist/* scw-fr-par/vikunja-releases/desktop/$VERSION/