-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1011 Bytes
/
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
name: Build API
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
# Get the latest commit ID
- id: commit
uses: prompt/actions-commit-hash@v3
# Clone the repo & its submodules
- uses: actions/checkout@v4
with:
submodules: recursive
# Setup Java & Maven
- name: Install Java 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
architecture: x64
# Compile the project
- name: Compile the NetHandler
run: cd NetHandler && mvn clean install
- name: Compile the API
run: mvn clean install
# Create a release with the compiled API jar
- uses: ncipollo/release-action@v1
with:
draft: true
artifacts: "target/CheatBreakerAPI.jar"
tag: ${{ steps.commit.outputs.short }}
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true