From f5c948e5a1e98075aad1e3ed43177ca23d2df8d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=E5=B2=9A=E9=9B=A8=E5=87=9B=E2=80=9D?= <“cheng_ying@outlook.com”> Date: Thu, 23 May 2024 14:17:10 +0800 Subject: [PATCH] feat(github action) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.获取文件名,发布工件的名称不再是默认的artifact,而是pixiv-x.x.x-mirai --- .github/workflows/gradle.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 4197689..59c9947 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -38,10 +38,14 @@ jobs: uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 with: arguments: buildPluginLegacy + #取文件名 + - name: Get Plugin Name + run: echo "NAME=$(find /home/runner/work/mirai-plugins-pixiv/mirai-plugins-pixiv/build/mirai -name "*mirai.jar" -exec basename {} \; | sed 's/\.mirai.jar/-mirai/')" >> $GITHUB_ENV - name: Upload a Build Artifact uses: actions/upload-artifact@v3.1.0 if: success() with: + name: ${{ env.NAME }} path: /home/runner/work/mirai-plugins-pixiv/mirai-plugins-pixiv/build/mirai/*.jar retention-days: 0 if-no-files-found: error