From 9629579f53405740ddb9d3a10f91d65a57ff7761 Mon Sep 17 00:00:00 2001 From: Hendrix-Shen Date: Fri, 27 Aug 2021 00:28:51 +0800 Subject: [PATCH] Fix publish action script --- .github/workflows/publish.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ce83ff6e..a82c2acc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -89,6 +89,7 @@ jobs: - name: Set build number in codes run: | sed -i "s/build.undefined/build.$GITHUB_RUN_NUMBER/g" gradle.properties + sed -i "s/build.undefined/build.$GITHUB_RUN_NUMBER/g" src/main/java/top/hendrixshen/TweakMyClient/Reference.java sed -i "s/Version Exception/Public Release/g" src/main/java/top/hendrixshen/TweakMyClient/Reference.java - name: Grant execute permission for gradlew run: chmod +x gradlew @@ -99,6 +100,12 @@ jobs: 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 Action + if: ${{ matrix.os == 'ubuntu-latest' }} + uses: actions/upload-artifact@v2 + with: + name: TweakMyClient-fabric-mc${{ matrix.branch }}-${{ steps.getid.outputs.commitID }}(Public Release) + path: build/libs/ - name: Upload assets to GitHub uses: AButler/upload-release-assets@v2.0 with: