From cb414858729c2d0eb9c98b4b4d92b6b617fcc4ee Mon Sep 17 00:00:00 2001 From: CarmJos Date: Mon, 28 Feb 2022 19:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=9E=84=E5=BB=BA=E5=8C=85?= =?UTF-8?q?=E5=90=ABtarget?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/maven.yml | 12 +++++++++--- pom.xml | 25 ++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index beaef15..16c0691 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -24,15 +24,21 @@ jobs: server-id: github server-username: MAVEN_USERNAME server-password: MAVEN_TOKEN + - name: "Package" run: mvn -B package --file pom.xml -Dmaven.javadoc.skip=true env: MAVEN_USERNAME: ${{ github.repository_owner }} MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}} - - name: "Target Stage" - run: mkdir staging && cp asset/*.jar staging + + - name: "Target Staging" + run: | + mkdir artifacts + cp -vrf target/ artifacts/target/ + cp -vrf asset/*.jar artifacts + - name: "Upload artifact" uses: actions/upload-artifact@v2 with: name: Artifact - path: staging + path: artifacts \ No newline at end of file diff --git a/pom.xml b/pom.xml index 53e48a4..81f24b7 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ cc.carm.plugin timereward - 1.0.0 + 1.1.0 jar TimeReward @@ -133,6 +133,29 @@ + + org.apache.maven.plugins + maven-clean-plugin + 2.5 + + + + ${project.basedir}/asset/ + true + + **/* + + + + ${project.basedir}/api-docs/ + true + + **/* + + + + + org.apache.maven.plugins maven-surefire-plugin