mirror of
https://github.com/funkemunky/KauriV3.git
synced 2026-06-06 00:02:16 +00:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: "CI/CD"
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
submodules: true
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'zulu'
|
|
cache: maven
|
|
- name: Set up Maven
|
|
uses: stCarolas/setup-maven@v5
|
|
with:
|
|
maven-version: 3.9.6
|
|
- 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@v6
|
|
with:
|
|
name: EnterpriseAnticheat
|
|
path: Anticheat/target/AntiCheat-*.jar
|
|
- name: Upload API
|
|
uses: actions/upload-artifact@v6
|
|
with:
|
|
name: API
|
|
path: API/target/API-*.jar |