generated from GglLfr/MindustryModTemplate
-
Notifications
You must be signed in to change notification settings - Fork 7
27 lines (23 loc) · 657 Bytes
/
ci.yml
File metadata and controls
27 lines (23 loc) · 657 Bytes
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
name: Build Mod
on: [push, pull_request]
jobs:
buildJar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up PATH
run: |
echo "${ANDROID_HOME}/build-tools/34.0.0" >> $GITHUB_PATH
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build mod jar
run: |
chmod +x ./gradlew
./gradlew deploy
- name: Upload built jar file
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: build/libs/${{ github.event.repository.name }}.jar