-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.28 KB
/
Copy pathdev-build.yml
File metadata and controls
49 lines (41 loc) · 1.28 KB
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
44
45
46
47
48
49
name: Dev Build
on:
push:
branches: [ master, main, develop ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Get short commit hash
id: vars
run: echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Set-Up JDK
uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '21'
architecture: x64
cache: 'gradle'
- name: Read Gradle Properties
uses: BrycensRanch/read-properties-action@v1.0.4
id: all
with:
file: gradle.properties
all: true
- name: Publish dev build to Maven
id: upload-maven
run: |
./gradlew publish \
-PmavenType=dev \
-PbuildNumber=${{ github.run_number }} \
-PmavenUsername=${{ secrets.MAVEN_USER }} \
-PmavenPassword=${{ secrets.MAVEN_TOKEN }}
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: lambda-loader-nightly
path: build/libs/${{ steps.all.outputs.modId }}-${{ steps.all.outputs.modVersion }}-dev.${{ github.run_number }}.jar
if-no-files-found: error