mirror of
https://github.com/CarmJos/UserPrefix.git
synced 2026-06-05 09:01:39 +08:00
添加packages自动部署
This commit is contained in:
@@ -23,14 +23,13 @@ jobs:
|
|||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
cache: maven
|
cache: maven
|
||||||
- name: run Maven
|
|
||||||
run: mvn -B deploy --file pom.xml
|
|
||||||
with:
|
|
||||||
server-id: github
|
server-id: github
|
||||||
# Nexus用户名环境变量
|
# Nexus用户名环境变量
|
||||||
server-username: ${{ secrets.MAVEN_USERNAME }}
|
server-username: ${{ secrets.MAVEN_USERNAME }}
|
||||||
# Nexus密码环境变量
|
# Nexus密码环境变量
|
||||||
server-password: ${{ secrets.GITHUB_TOKEN }}
|
server-password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: run Maven
|
||||||
|
run: mvn -B deploy --file pom.xml
|
||||||
- run: mkdir staging && cp target/*.jar staging
|
- run: mkdir staging && cp target/*.jar staging
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user