-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
32 lines (29 loc) · 1.05 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
kind: pipeline
type: exec
name: default
platform:
os: darwin
steps:
- name: build
environment:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
WEBDAV_USER:
from_secret: WEBDAV_USER
WEBDAV_BASE_URL:
from_secret: WEBDAV_BASE_URL
commands:
- fastlane adhoc
- ARTIFACT_DIR="/herald/`date -u '+%d%m%y-%H%M%S'`_$${CI_COMMIT_SHA}"
- echo $${ARTIFACT_DIR}
- ./ipa-ota herald.ipa $${WEBDAV_BASE_URL}$${ARTIFACT_DIR}/ > install.html
- curl -sSf -X MKCOL $${WEBDAV_BASE_URL}/herald --user $${WEBDAV_USER}
- curl -sSf -X MKCOL $${WEBDAV_BASE_URL}$${ARTIFACT_DIR} --user $${WEBDAV_USER}
- curl -sSf -T 'herald.ipa' $${WEBDAV_BASE_URL}$${ARTIFACT_DIR}/herald.ipa --user $${WEBDAV_USER}
- curl -sSf -T 'herald.plist' $${WEBDAV_BASE_URL}$${ARTIFACT_DIR}/herald.plist --user $${WEBDAV_USER}
- curl -sSf -T 'herald.app.dSYM.zip' $${WEBDAV_BASE_URL}$${ARTIFACT_DIR}/herald.app.dSYM.zip --user $${WEBDAV_USER}
- curl -sSf -T 'install.html' $${WEBDAV_BASE_URL}$${ARTIFACT_DIR}/install.html --user $${WEBDAV_USER}
trigger:
branch:
- master