mirror of
https://github.com/chillzhuang/blade-tool
synced 2025-01-07 21:45:47 +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:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up JDK 17
|
- uses: actions/setup-java@v4
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
cache: 'maven'
|
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
cache: 'maven'
|
||||||
|
cache-dependency-path: 'pom.xml'
|
||||||
server-id: oss
|
server-id: oss
|
||||||
server-username: MAVEN_USERNAME
|
server-username: MAVEN_USERNAME
|
||||||
server-password: MAVEN_PASSWORD
|
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
|
name: build on java17
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up JDK 17
|
- uses: actions/setup-java@v4
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
cache: 'maven'
|
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
cache: 'maven'
|
||||||
|
cache-dependency-path: 'pom.xml'
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn package -P !develop
|
run: mvn package -P !develop
|
||||||
|
Loading…
Reference in New Issue
Block a user