support: now client can use this mod (maybe?) #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [ 'main' ] | |
paths: | |
- src/** | |
- build.gradle | |
- gradle.properties | |
- settings.gradle | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Cache gradle files | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
./.gradle/loom-cache | |
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle', 'gradle.properties', '**/*.accesswidener') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Grant execute permission | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew remapJar | |
- name: Upload JAR file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: PearlTickets-Next | |
path: | | |
./build/libs/ |