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