-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 916 Bytes
/
build.yml
File metadata and controls
43 lines (34 loc) · 916 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
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Add execute permission to gradlew
run: chmod +x gradlew
- name: Set up JDK 23
uses: actions/setup-java@v4
with:
java-version: '23'
distribution: 'temurin'
- name: Build with Gradle
run: ./gradlew build
- name: Upload JAR file
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/libs/*.jar
- name: Upload to maven
env:
CI: true
BUILD_NUMBER: ${{ github.run_number }}
GITHUB_TOKEN: ${{ secrets.PACKAGE_SECRET }}
GITHUB_USERNAME: ${{ github.repository_owner }}
GITHUB_REPOSITORY: ${{ github.repository }}
run:
./gradlew publish