Repository navigation
60 lines (57 loc) · 1.49 KB
/
Copy pathbuild.yml
File metadata and controls
60 lines (57 loc) · 1.49 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
59
60
name: Build & Release
on:
push:
branches:
- master
- 1.21.11
- 26.1
- 26.2
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- branch: 1.21.11
java: 21
- branch: 26.1
java: 25
- branch: 26.2
java: 25
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
- uses: gradle/actions/setup-gradle@v4
- run: chmod +x gradlew
- run: ./gradlew build
- uses: actions/upload-artifact@v4
with:
name: aimless-${{ matrix.branch }}
path: build/libs/*.jar
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
- name: Get timestamp
id: date
run: echo "timestamp=$(date -u +'%Y-%m-%dT%H-%M-%SZ')" >> $GITHUB_OUTPUT
- uses: softprops/action-gh-release@v3
with:
tag_name: ${{ steps.date.outputs.timestamp }}
name: Aimless ${{ steps.date.outputs.timestamp }}
body: |
Automated build.
Branches: 1.21.11, 26.1, 26.2
Build time: ${{ steps.date.outputs.timestamp }}
files: aimless-*/*.jar
fail_on_unmatched_files: true
generate_release_notes: true