Skip to content

Commit

Permalink
自动构建
Browse files Browse the repository at this point in the history
  • Loading branch information
shulng committed May 28, 2024
1 parent ae99e61 commit eee001f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ name: Java CI with Maven

on:
push:
branches: [ "master" ]
branches:
- '*' # 所有分支
pull_request:
branches: [ "master" ]
branches:
- '*' # 所有分支

jobs:
build:
Expand All @@ -22,9 +24,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
Expand All @@ -33,3 +35,8 @@ jobs:
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: built-package
path: target/*.jar

0 comments on commit eee001f

Please sign in to comment.