mirror of
https://github.com/funkemunky/KauriV3.git
synced 2026-06-08 09:02:17 +00:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: "CI/CD"
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
cache: maven
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: ~/.m2/
|
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-maven-
|
|
- name: Build with Maven
|
|
run: mvn -B package --file pom.xml
|
|
|
|
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
|
|
- name: Update dependency graph
|
|
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
|
|
|
|
- name: Upload Enterprise
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: EnterpriseAnticheat
|
|
path: Anticheat/target/AntiCheat-*.jar
|
|
- name: Upload API
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: API
|
|
path: API/target/API-*.jar |