Update LongTimeNoSee.java #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Maven | |
on: | |
push: | |
branches: [ "main" ] # 触发构建的分支 | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# 检出代码 | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
# 设置 Java 环境 | |
- 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 | |
# 上传生成的插件 jar 文件到 Actions 运行结果中 | |
- name: Upload Plugin Jar | |
uses: actions/upload-artifact@v3 | |
with: | |
name: LongTimeNoSee.jar | |
path: target/LongTimeNoSee-1.1-SNAPSHOT.jar |