-
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 686 Bytes
/
maven.yml
File metadata and controls
30 lines (28 loc) · 686 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
28
29
30
name: Build & Upload
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Unshallow
run: git fetch --unshallow --quiet
- name: Build with Maven
run: mvn -B package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: "Topper"
path: "**/topper*.jar"