Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ShintoKosei authored Apr 6, 2024
1 parent d13bfad commit 922a85f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build_1_20_4_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ jobs:
run: |
git config --global user.email "ci@luminolmc.com"
git config --global user.name "Luminol CI"
# - name: Apply Patches
# run: ./gradlew applyPatches
# - name: Build
# run: ./gradlew createReobfBundlerJar createReobfPaperclipJar
# - uses: "actions/upload-artifact@v3"
# with:
# name: "Luminol CI Artifacts"
# path: "build/libs/*.jar"
# - name: Rename jar file
# run: |
# mv build/libs/luminol-bundler-1.20.4-R0.1-SNAPSHOT-reobf.jar build/libs/luminol-1.20.4-bundler.jar
# mv build/libs/luminol-paperclip-1.20.4-R0.1-SNAPSHOT-reobf.jar build/libs/luminol-1.20.4-paperclip.jar
- name: Apply Patches
run: ./gradlew applyPatches
- name: Build
run: ./gradlew createReobfBundlerJar createReobfPaperclipJar
- uses: "actions/upload-artifact@v3"
with:
name: "Luminol CI Artifacts"
path: "build/libs/*.jar"
- name: Rename jar file
run: |
mv build/libs/luminol-bundler-1.20.4-R0.1-SNAPSHOT-reobf.jar build/libs/luminol-1.20.4-bundler.jar
mv build/libs/luminol-paperclip-1.20.4-R0.1-SNAPSHOT-reobf.jar build/libs/luminol-1.20.4-paperclip.jar
- name: setenv
run: |
sh scripts/SetENV.sh
Expand Down
5 changes: 0 additions & 5 deletions scripts/SetENV.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@ prop() {
}

commitid=$(git log --pretty='%h' -1)
echo "$commitid"
mcversion=$(prop mcVersion)
echo "$mcversion"
preVersion=$(prop preVersion)
echo "$preVersion"
release_tag="$mcversion-$commitid"
echo "$release_tag"
jarName="build/libs/luminol-1.20.4-paperclip.jar"
make_latest=$([ $preVersion = "true" ] && echo "false" || echo "true")
echo "$make_latest"

echo "commitid=$commitid" >> $GITHUB_ENV
echo "mcversion=$mcversion" >> $GITHUB_ENV
Expand Down

0 comments on commit 922a85f

Please sign in to comment.