Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Cai-kunkun authored Dec 22, 2024
1 parent 1c18b7c commit dda2b5c
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@ jobs:
- name: Build
run: ./gradlew build
- name: Upload artifact
run: |
cd build/libs
export JAR=$(find . -regex '.*liquidbounce-b[0-9|.]*\.jar')
export LB_VERSION=$(echo $JAR | sed -r 's/.\/liquidbounce-([a-zA-Z][0-9]+)\.jar/\1/')
export MINECRAFT_VERSION='1.8.9'
echo Version: $LB_VERSION, Minecraft: $MINECRAFT_VERSION
cp $JAR zip/liquidbounce.jar
cd zip
zip -r liquidbounce.zip *
md5sum liquidbounce.zip
curl --connect-timeout 30 -m 300 -X POST -F "[email protected]" -H "Authorization: ${{ secrets.NIGHTLY_PASS }}" -F "gh_id=${{ github.event.head_commit.id }}" -F "gh_ref=${{ github.ref }}" -F "gh_message=${{ github.event.head_commit.message }}" -F "gh_timestamp=${{ github.event.head_commit.timestamp }}" -F "lb_version=$LB_VERSION" -F "mc_version=$MINECRAFT_VERSION" -F "jre_version=8" -F "subsystem=forge" https://api.liquidbounce.net/api/v1/version/new
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: build/libs/

0 comments on commit dda2b5c

Please sign in to comment.