Skip to content

Commit

Permalink
Update and rename maven-builder.yml to gradle-builder.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rothes authored Jul 21, 2024
1 parent 8cf8fd7 commit 69b304d
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,24 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'

- name: Build with Maven
run: mvn --batch-mode --update-snapshots package
- name: Make gradlew executable
run: chmod +x ./gradlew

# - uses: actions/upload-artifact@v3
# with:
# name: ProtocolStringReplacer-Snapshot
# path: target/ProtocolStringReplacer v[\d\.]+.jar
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.6

- name: Execute Gradle build
run: ./gradlew reobfJar

- run: mkdir ProtocolStringReplacer && cp target/*.jar ProtocolStringReplacer
- run: mkdir ProtocolStringReplacer && cp build/libs/*.jar ProtocolStringReplacer

- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 69b304d

Please sign in to comment.