-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 1.06 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
on: [push, workflow_dispatch]
name: Building
jobs:
building:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Add build tools to the $PATH
run: echo "${ANDROID_HOME}/build-tools/33.0.2" >> $GITHUB_PATH
- name: Compile the mod
run: |
chmod +x ./gradlew
./gradlew minchat-backend:jar minchat-cli:shadowJar minchat-client:release
- name: Upload the client artifact
uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}-client-mod
path: minchat-client/build/libs/*.jar
- name: Upload the server artifact
uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}-backend-server
path: minchat-backend/build/libs/*.jar
- name: Upload the cli client artifact
uses: actions/upload-artifact@v2
with:
name: ${{ github.event.repository.name }}-cli-client
path: minchat-cli/build/libs/*.jar