Skip to content
This repository was archived by the owner on May 13, 2023. It is now read-only.

Commit 0500d03

Browse files
committed
Add CI
1 parent 94ef2ac commit 0500d03

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.drone.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
kind: pipeline
2+
name: build
3+
4+
platform:
5+
os: linux
6+
arch: amd64
7+
8+
steps:
9+
- name: build-1.10
10+
image: gradle:jdk8
11+
environment:
12+
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
13+
commands:
14+
- ln -s "$PWD/ForgeWurst MC 1.12.2/src/shared" "$PWD/ForgeWurst MC 1.10.2/src/shared"
15+
- cd "ForgeWurst MC 1.10.2/"
16+
- export GRADLE_USER_HOME="$PWD/.gradle"
17+
- ./gradlew build
18+
19+
- name: build-1.12
20+
image: gradle:jdk8
21+
environment:
22+
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
23+
commands:
24+
- cd "ForgeWurst MC 1.12.2/"
25+
- export GRADLE_USER_HOME="$PWD/.gradle"
26+
- ./gradlew build
27+
28+
- name: release
29+
image: plugins/github-release
30+
settings:
31+
api_key:
32+
from_secret: GITHUB_KEY
33+
files:
34+
- ForgeWurst MC 1.10.2/build/libs/*
35+
- ForgeWurst MC 1.12.2/build/libs/*
36+
when:
37+
event: tag
38+
depends_on:
39+
- build-1.10
40+
- build-1.12

0 commit comments

Comments
 (0)