mirror of
https://gitee.com/fujieid/jap.git
synced 2024-12-02 19:35:41 +08:00
📦 Update publish-snapshot.yml
This commit is contained in:
parent
b6a42f023a
commit
f340d57ebc
6
.github/workflows/publish-snapshot.yml
vendored
6
.github/workflows/publish-snapshot.yml
vendored
@ -12,9 +12,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
# 安装JDK环境
|
# 安装JDK环境
|
||||||
@ -22,14 +20,12 @@ jobs:
|
|||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
|
distribution: 'adopt'
|
||||||
server-id: sonatype-nexus-snapshots # Value of the distributionManagement/repository/id field of the pom.xml
|
server-id: sonatype-nexus-snapshots # Value of the distributionManagement/repository/id field of the pom.xml
|
||||||
settings-path: ${{ github.workspace }} # location for the settings.xml file
|
|
||||||
server-username: MAVEN_USERNAME
|
server-username: MAVEN_USERNAME
|
||||||
server-password: MAVEN_PASSWORD
|
server-password: MAVEN_PASSWORD
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
|
||||||
- name: Publish to GitHub Packages Apache Maven
|
- name: Publish to GitHub Packages Apache Maven
|
||||||
run: mvn --batch-mode deploy
|
run: mvn --batch-mode deploy
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user