Skip to content

Commit

Permalink
Fix publish action script
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrix-Shen committed Aug 26, 2021
1 parent 735797a commit 9629579
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
with:
Expand Down

0 comments on commit 9629579

Please sign in to comment.