-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
52 lines (48 loc) · 1.38 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
workspace:
path: /bzmoon
kind: pipeline
name: default
steps:
- name: bundle
image: thejanne/bztools:latest
commands:
when:
branch:
- master
event:
- tag
commands:
- mkdir -p /tmp/bzmoon
- mkdir -p /tmp/bzmoon2
- mkdir -p /bzmoon/build
- moonc /bzmoon/src
- cp /bzmoon/extra/* /tmp/bzmoon
- find /bzmoon/src -type f -name "*.lua" -exec cp {} /tmp/bzmoon \;
- cp /bzmoon/.squish /tmp/bzmoon
- cp -r /tmp/bzmoon/. /tmp/bzmoon2/
- python3 /bztools/luaSquish.py /tmp/bzmoon2 -r
- mv /tmp/bzmoon2/* /tmp/bzmoon
- rm /tmp/bzmoon/bzpre_1.5.dll
- rm /tmp/bzmoon/bzpre_bzr.dll
- cp /bzmoon/extra/bzpre_1.5.dll /tmp/bzmoon/bzpre.dll
- zip -j -r /bzmoon/build/bzmoon_1.5_${DRONE_TAG}.zip /tmp/bzmoon
- cp /bzmoon/extra/bzpre_bzr.dll /tmp/bzmoon/bzpre.dll
- zip -j -r /bzmoon/build/bzmoon_bzr_${DRONE_TAG}.zip /tmp/bzmoon
- cp /bzmoon/build/bzmoon_bzr_${DRONE_TAG}.zip /bzmoon/build/bzmoon_bzr_latest.zip
- cp /bzmoon/build/bzmoon_1.5_${DRONE_TAG}.zip /bzmoon/build/bzmoon_1.5_latest.zip
- name: upload
image: plugins/s3
settings:
bucket: buildstorage
access_key:
from_secret: access_key
secret_key:
from_secret: secret_key
source: /bzmoon/build/*.zip
target: /battlezone/
acl: public-read
endpoint: https://s3.nl-ams.scw.cloud
region: nl-ams
when:
event:
- tag