-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (39 loc) · 1022 Bytes
/
test-release.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
33
34
35
36
37
38
39
40
41
42
name: Test Build Release
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'info'
type: choice
options:
- debug
- info
- warning
- error
jobs:
build-release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload App To Artifact
uses: actions/upload-artifact@v4
with:
name: kingprimes.top
# 描述上传内容的文件、目录或通配符模式
# 必填项。
path: /home/runner/work/NyxBot/NyxBot/target/NyxBot.jar
if-no-files-found: warn
retention-days: 30
compression-level: 6
overwrite: true