From b554f799efb4c5b3401202a2f1fccb7259731005 Mon Sep 17 00:00:00 2001 From: carm Date: Sun, 18 Dec 2022 03:07:06 +0800 Subject: [PATCH] =?UTF-8?q?ci(upload):=20=E6=B7=BB=E5=8A=A0=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E4=B8=8A=E4=BC=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 10 ++++++++++ .github/workflows/maven.yml | 15 ++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d1da139..5c02a6c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,6 +33,16 @@ jobs: MAVEN_TOKEN: ${{secrets.GITHUB_TOKEN}} MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} + - name: "Release Asset Upload" + id: upload-release-asset + uses: shogo82148/actions-upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ".asset/*.jar" + asset_content_type: application/java-archive + central-deploy: name: "Deploy Project (Central)" runs-on: ubuntu-latest diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index a959a23..fda6f5e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,10 +27,15 @@ jobs: distribution: 'adopt' - name: "Package" run: mvn -B package --file pom.xml -Dgpg.skip - - name: "Target Stage" - run: mkdir staging && cp */target/*.jar staging - - name: "Upload artifact" + + - name: "Upload artifacts" uses: actions/upload-artifact@v2 with: - name: Artifact - path: staging \ No newline at end of file + name: artifacts + path: "**/target/" + + - name: "Upload assets" + uses: actions/upload-artifact@v2 + with: + name: assets + path: ".asset/" \ No newline at end of file