forked from Bread-NiceCat/CandyCraftCE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autobuild.yml
63 lines (63 loc) · 1.45 KB
/
autobuild.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
53
54
55
56
57
58
59
60
61
62
63
version: '1.0'
name: autobuild
displayName: autobuild
triggers:
trigger: auto
push:
branches:
include:
- .+
pr:
branches:
include:
- .+
stages:
- name: stage-d5ea25af
displayName: 构建
strategy: naturally
trigger: auto
executor: [ ]
steps:
- step: build@gradle
name: build_gradle
displayName: Gradle 构建
jdkVersion: '17'
gradleVersion: '4.4'
commands:
- '# Gradle默认构建命令'
- chmod +x ./gradlew
- ./gradlew build
artifacts:
- name: FORGE
path:
- forge/build/libs/candycraftce-*.*.*[0-9].jar
- name: FABRIC
path:
- fabric/build/libs/candycraftce-*.*.*[0-9].jar
caches:
- ~/.gradle/caches
notify: [ ]
strategy:
retry: '0'
- name: stage-11333fe8
displayName: 上传
strategy: naturally
trigger: auto
executor: [ ]
steps:
- step: publish@general_artifacts
name: publish_general_artifacts1
displayName: 上传制品
dependArtifact: FORGE
artifactName: forge
notify: [ ]
strategy:
retry: '0'
- step: publish@general_artifacts
name: publish_general_artifacts2
displayName: 上传制品
dependArtifact: FABRIC
artifactName: fabric
notify: [ ]
strategy:
retry: '0'