From 68dac2e5df5396b83d232471ec4fefcf90ab5dc9 Mon Sep 17 00:00:00 2001 From: plusls Date: Sun, 5 Sep 2021 21:59:21 +0800 Subject: [PATCH] don't upload src, dev --- .github/workflows/publish.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1789c13..8a3236d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,9 +29,14 @@ jobs: run: chmod +x ./gradlew - name: build run: ./gradlew build + - name: Find correct JAR + id: findjar + run: | + output="$(find build/libs/ ! -name "*-dev.jar" ! -name "*-sources.jar" -type f -printf "%f\n")" + echo "::set-output name=jarname::$output" - name: Upload assets to GitHub uses: AButler/upload-release-assets@v2.0 if: ${{ runner.os == 'Linux' && matrix.java == '16' }} with: - files: 'build/libs/*;LICENSE' + files: build/libs/${{ steps.findjar.outputs.jarname }} repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file