Skip to content

Test Build Release

Test Build Release #6

Workflow file for this run

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