Skip to content

Commit

Permalink
ci:简化 GitHub Actions 工作流配置
Browse files Browse the repository at this point in the history
-移除工作流名称的冗余定义
- 删除了不必要的 on事件配置
- 保留基本的 Java 构建步骤
  • Loading branch information
xuxueli committed Dec 29, 2024
1 parent bfeb308 commit 7a99c3a
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI

name: Java CI with Maven

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml

0 comments on commit 7a99c3a

Please sign in to comment.