From 5b6ee739e0c2b4f525503efb2df8cd70e9632882 Mon Sep 17 00:00:00 2001 From: s-yh-china <58360096+s-yh-china@users.noreply.github.com> Date: Thu, 23 Jun 2022 16:56:42 +0800 Subject: [PATCH] [ci skip] Auto Create Release --- .github/workflows/leaves.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/leaves.yml b/.github/workflows/leaves.yml index ed394c8b..db8df89f 100644 --- a/.github/workflows/leaves.yml +++ b/.github/workflows/leaves.yml @@ -35,8 +35,17 @@ jobs: uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 with: arguments: createReobfPaperclipJar - - name: Archive Leaves Paperclip - uses: actions/upload-artifact@v2 + - name: Rename Jar And Set env + run: | + mv build/libs/Leaves-paperclip-1.19-R0.1-SNAPSHOT-reobf.jar leaves-1.19.jar + echo "message=`git log --pretty=format:ā€œ%sā€ -1`" >> $GITHUB_ENV + echo "name=Leaves-`git rev-parse --short HEAD`" >> $GITHUB_ENV + - name: Create Release + uses: ncipollo/release-action@v1 with: - name: Leaves - path: build/libs/Leaves-paperclip-1.19-R0.1-SNAPSHOT-reobf.jar + artifacts: leaves-1.19.jar + body: ${{ env.message }} + tag: "1.19" + prerelease: false + name: ${{ env.name }} + token: ${{ secrets.GITHUB_TOKEN }}