-
Notifications
You must be signed in to change notification settings - Fork 20
58 lines (47 loc) · 1.41 KB
/
release.yml
File metadata and controls
58 lines (47 loc) · 1.41 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
50
51
52
53
54
55
56
57
58
name: Release Lambda
on:
push:
tags:
- '*'
jobs:
build:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
name: Build and Release Lambda
runs-on: ubuntu-latest
permissions:
contents: write
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: '5'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set-Up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
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: Build Lambda
run: ./gradlew build
- name: Publish release to maven
id: upload
run: ./gradlew publish -PmavenType=release -PmavenUsername=${{ secrets.MAVEN_USER }} -PmavenPassword=${{ secrets.MAVEN_TOKEN }}
- name: Create Release
uses: softprops/action-gh-release@v2.0.8
with:
name: Lambda ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
generate_release_notes: true
append_body: true
make_latest: "true"
files: |
build/libs/lambda-${{ steps.all.outputs.modVersion }}+${{ steps.all.outputs.minecraftVersion }}.jar