From 7743bbb3ff5d4a9efd0e9a4a9523d800aba8dff9 Mon Sep 17 00:00:00 2001 From: carm Date: Thu, 7 Oct 2021 22:50:23 +0800 Subject: [PATCH] =?UTF-8?q?2.1.3=20=E8=87=AA=E5=8A=A8=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E4=B8=8E=E9=83=A8=E7=BD=B2=20(=E6=97=A0=E5=AE=9E=E8=B4=A8?= =?UTF-8?q?=E6=9B=B4=E6=96=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/maven.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index caddc27..0a93ae4 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 11 + - name: "Set up JDK" uses: actions/setup-java@v2 with: java-version: '11' @@ -25,13 +25,18 @@ jobs: cache: maven server-id: github # Nexus用户名环境变量 - server-username: ${{ secrets.MAVEN_USERNAME }} + server-username: MAVEN_USERNAME # Nexus密码环境变量 - server-password: ${{ secrets.MAVEN_TOKEN }} - - name: run Maven + server-password: MAVEN_TOKEN + - name: "Package & Deploy" run: mvn -B deploy --file pom.xml - - run: mkdir staging && cp target/*.jar staging - - uses: actions/upload-artifact@v2 + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_TOKEN: {{secrets.GITHUB_TOKEN}} + - name: "Stage" + run: mkdir staging && cp target/*.jar staging + - name: "Upload artifact" + uses: actions/upload-artifact@v2 with: name: artifact path: staging \ No newline at end of file