-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 1.14 KB
/
ci.yml
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
name: Java CI
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'
- name: Get Commit Data
id: commit
uses: prompt/[email protected]
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Change Wrapper Permissions
run: chmod +x ./gradlew
- name: Gradle Build
uses: gradle/[email protected]
with:
arguments: shadowJar --scan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: dev-${{ steps.commit.outputs.short }}
- uses: actions/[email protected]
with:
name: MikChanNoMOTD-dev-${{ steps.commit.outputs.short }}.zip
path: |
build/libs/
LICENSE.txt