-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.22 KB
/
build.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
name: Build projects
on:
push:
schedule: # Uploaded artifacts expire after some time, so let's upload new ones every so often
- cron: '0 0 1 * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Determine Iodine version
id: version
run: echo ::set-output name=version::$(cat VERSION)
- name: Build root projects
run: |
chmod +x gradlew
./gradlew shadowJar publishToMavenLocal --warning-mode all
- name: Upload Bukkit plugin JAR
uses: actions/upload-artifact@v1
with:
name: Iodine-Bukkit-${{ steps.version.outputs.version }}.jar
path: bukkit/build/libs/Iodine-Bukkit-${{ steps.version.outputs.version }}.jar
- name: Build forge-1_14_4
run: |
cd forge-1_14_4
chmod +x gradlew
./gradlew build --warning-mode all
cd ..
- name: Upload Forge mod JAR
uses: actions/upload-artifact@v1
with:
name: Iodine-Forge-1_14_4-${{ steps.version.outputs.version }}.jar
path: forge-1_14_4/build/libs/Iodine-Forge-1_14_4-${{ steps.version.outputs.version }}.jar