Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
shulng committed Jul 31, 2024
1 parent b65f634 commit 1004b76
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@ on:
push:
branches:
- '*' # 所有分支
tags:
- 'v*'
pull_request:
branches:
- '*' # 所有分支
- '*'

permissions:
contents: write
discussions: write

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
java-version: ['8', '11', '17', '21']

steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
java-version: 8
distribution: 'temurin'
cache: maven
- name: Build with Maven
Expand All @@ -32,5 +34,13 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: CatSeedLogin-${{ matrix.java-version }}
name: CatSeedLogin
path: target/*.jar

- name: Create Release and Upload Release Asset
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
files: target/*.jar

0 comments on commit 1004b76

Please sign in to comment.