mirror of
https://github.com/chillzhuang/blade-tool
synced 2025-01-06 04:55:33 +08:00
✨ 优化 github action
This commit is contained in:
parent
345db07aac
commit
9672385abd
8
.github/workflows/publish-snapshot.yml
vendored
8
.github/workflows/publish-snapshot.yml
vendored
@ -10,13 +10,13 @@ jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
cache: 'maven'
|
||||
java-version: 17
|
||||
cache: 'maven'
|
||||
cache-dependency-path: 'pom.xml'
|
||||
server-id: oss
|
||||
server-username: MAVEN_USERNAME
|
||||
server-password: MAVEN_PASSWORD
|
||||
|
8
.github/workflows/test-and-build.yml
vendored
8
.github/workflows/test-and-build.yml
vendored
@ -6,12 +6,12 @@ jobs:
|
||||
name: build on java17
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
cache: 'maven'
|
||||
java-version: 17
|
||||
cache: 'maven'
|
||||
cache-dependency-path: 'pom.xml'
|
||||
- name: Build with Maven
|
||||
run: mvn package -P !develop
|
||||
|
Loading…
Reference in New Issue
Block a user