Skip to content

Delete config directory #17

Delete config directory

Delete config directory #17

Workflow file for this run

name: Build and Upload Artifact
on:
push:
branches:
- master # 如果你的分支名是 master,请改成 master
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: CoreProtect-23.1.jar
path: target/CoreProtect-23.1.jar # 自动查找 target 目录下的 jar 文件
if-no-files-found: error