update ci-cd
Some checks failed
Java CI-CD with Gradle / build (push) Failing after 2m48s

This commit is contained in:
zhangyuheng 2024-08-05 16:05:59 +08:00
parent 4f6607f072
commit 744363cbd4

View File

@ -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}}'