From 744363cbd493e7b02aebf68d0b5502a464818caa Mon Sep 17 00:00:00 2001 From: zhangyuheng Date: Mon, 5 Aug 2024 16:05:59 +0800 Subject: [PATCH] update ci-cd --- .gitea/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 0307ae0..6a3c92b 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -26,11 +26,13 @@ jobs: - name: "Apply Patches" run: ./gradlew applyPatches - name: "Build Mojmap" - run: | - ./gradlew createReobfPaperclipJar - ./gradlew createMojmapPaperclipJar + run: ./gradlew createMojmapPaperclipJar - name: "Copy jar to staging" run: mkdir staging && cp build/libs/*.jar staging + - name: "Rename file to DeerFolia-{git tag name}.jar" + run: | + GIT_TAG=$(git describe --tags --abbrev=0) + mv staging/*.jar staging/DeerFolia-$GIT_TAG.jar - name: "Setup go for release script" run: | wget --no-check-certificate https://studygolang.com/dl/golang/go1.22.0.linux-amd64.tar.gz @@ -40,7 +42,7 @@ jobs: - name: "Release" uses: https://ssl.lunadeer.cn:14446/zhangyuheng/release-action@main with: - note: " - 建议下载 `DeerFolia-paperclip-xxx-mojmap.jar` 版本。\n - 如果有插件无法运行可尝试 `DeerFolia-paperclip-xxx-reobf.jar`。" + note: "" files: |- staging/*.jar api_key: '${{secrets.RELEASE_TOKEN}}' \ No newline at end of file